Search the Community
Showing results for tags 'cursor'.
-
Rapaziada eu to com um erro que ta atrapalhando no meu projeto, na parte do cursor, então o problema é que quando eu clico pra ir pra outra aba ele buga completamente function Clicando( button, state ) if Parte == "Comida" then if cursorPosition (x*569, y*355, x*40, y*20) then Parte = "Arma" end if cursorPosition (x*366, y*355, x*40, y*20) then Parte = "Droga" end end if Parte == "Arma" then if cursorPosition (x*569, y*355, x*40, y*20) then Parte = "Droga" end if cursorPosition (x*366, y*355, x*40, y*20) then Parte = "Comida" end end if Parte == "Droga" then if cursorPosition (x*569, y*355, x*40, y*20) then Parte = "Comida" end if cursorPosition (x*366, y*355, x*40, y*20) then Parte = "Arma" end end end addEventHandler("onClientClick", getRootElement(),Clicando)
-
I want to render a rectangle to the cursor, but the rectangle too far from the cursor.. How to fix this in my code? code: local sx_, sy_ = 1920, 1080 local sx__, sy__ = guiGetScreenSize() local xm, ym = sx__/sx_, sy__/sy_ function render() local screenx, screeny = getCursorPosition() dxDrawRectangle((sx_-687) * xm * screenx, (sy_/2+70) * ym * screeny, 170 * xm, 25 * ym,tocolor(255,181,64,80)) end addEventHandler("onClientRender",root,render) the problem:
-
Is it possible to use getCursorPosition without making the cursor visible?
- 3 replies
-
- getcursorposition
- cursor
-
(and 1 more)
Tagged with:
-
Is it possible to create a "wall" element that stops the cursor to go through? A good example is the side of the screen (It is not possible to go further when you reach the side of the screen). Thanks in advance!