Hey, can someone make me a simple script that checks if player clicks on a 3D Rectangle?
local x,y,z = 0, 0, 3
local sx,sy = getScreenFromWorldPosition(x,y,z)
if sx and sy then
dxDrawRectangle(sx - 75, sy - 18.75, 200, 37.5, tocolor(0,0,0,200), false)
dxDrawText("text", sx - 37.5, sy - 8, sx - 37.5, sy - 8, tocolor(255,255,255,255), client.scale, "clear")
end
'local x,y,z' is just an example, these variables is changing every second so I don't really know how to do it.