Jump to content

Search the Community

Showing results for tags 'cursor'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 4 results

  1. 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)
  2. 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:
  3. Is it possible to use getCursorPosition without making the cursor visible?
  4. Xwad

    cursor "wall"

    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!
×
×
  • Create New...