local screenX, screenY = guiGetScreenSize();
addEventHandler("onClientRender", root,
function()
if enabled == true then
local height = 15
local lenght2 = dxGetTextWidth("Buy weapon", 1, "bankgothic")
button = dxDrawOutlinedRectangle(1, tocolor(255, 165, 0, 170), x/2-200, y/2+150, 400, 30, tocolor(255, 255, 255, 130), false)
dxDrawOutlinedText(tocolor(255, 165, 0, 255), "Buy weapon", x/2-lenght2/2, y/2+150, 200, 20, tocolor(0, 0, 0, 255), 1, "bankgothic", nil, nil, nil, nil, true)
sx, sy = getCursorPosition()
sx, sy = sx * screenX, sy * screenY;
if (sx >=x/2-200 and sx <=x/2+200) and (sy >=y/2+150 and sy <=y/2+180) then
dxDrawRectangle(x/2-200, y/2+150, 400, 30, tocolor(255, 255, 255, 80), true)
end
end
end
)