ty alot man, i hve this
local x, y = guiGetScreenSize()
bindKey("F2", "down",
function()
start = getTickCount()
addEventHandler("onClientRender", getRootElement(), logo)
end)
function logo()
showCursor(true)
local showing = isCursorShowing ()
if showing then -- if the cursor is showing
local screenx, screeny, worldx, worldy, worldz = getCursorPosition()
jaja = dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) )
end
destroyElement(jaja)
end
addEventHandler ( "onClientClick", getRootElement(), logo )
give me an example from you,idk how to puzzle the codes
but example with castillo code not getCursorPosition