Jump to content

Search the Community

Showing results for tags 'dxdrawrectangle'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 4 results

  1. 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:
  2. Hello guys, I would like to know how I can get position in the HUD interface is that I want to make a dxDrawRectangle apart a resistance script would help me?
  3. Hi! I'm making a hud script, and in my script when you leave the car, the rectangle shall hide, (removeEventHandler on onClientVehicleExit) but it only makes itself invisible, and when i re -enter the car, it becomes darker, an so on. It has a 150 alpha, and it looks very ugly when it is stronger than that. Any help?
  4. Hi! I want to learn using dxDraws properly, but i don't know where can i check screen coordinates, and i want to draw a straight line, and place a box in the center, and i'm trying my best and it is like this: Coding: local x,y = guiGetScreenSize() function drawStuff() local bg = dxDrawRectangle ( 500, 250, 500, 500, tocolor ( 0, 0, 0, 155 ) ) local line1 = dxDrawLine ( 600, 500, 300, 250, tocolor(0,0,0,255)) end addEventHandler("onClientRender", root, drawStuff) addCommandHandler ("asdasd", drawStuff) Can you help me? Please?
  • Create New...