1. Multi Theft Auto: San Andreas 1.x

    1. Support for MTA:SA 1.x

      HELP! HELP! Need help? Post here.
      50,324
      posts
    2. User Guides

      These guides are a good place to start learning how to achieve certain things within MTA in an efficient and well mannered way.

      6
      posts
    3. Open Source Contributors

      This space is for contributors to discuss the development of MTA. No user suggestions/support.

      1,203
      posts
    4. Suggestions

      Suggestions and requests go here. Please note that actual feature requests must be filed on our GitHub.

      7,505
      posts
    5. Ban appeals

      Use this forum to appeal your GLOBAL MTA:SA bans. Permanent bans only - appeals for timed ones (eg. 24 hours) will be refused.

      Do not use it for appealing server-specific bans as we do not have power over these specific servers.

      524
      posts
  2. General MTA

    1. News

      News and updates on Multi Theft Auto.
      9,435
      posts
    2. Media

      User-made screens and movies go here.

      4,188
      posts
    3. Site/Forum/Discord/Mantis/Wiki related

      Share your comments & concerns about our services.

      5,160
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!
      1,810
      posts
    5. 312,585
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      246,517
      posts
    2. Maps

      Discussions for maps on various gamemodes.
      12,839
      posts
    3. Resources

      Everything else about resources.
      26,657
      posts
    4. Other Creations & GTA modding

      This section includes things such as GUI themes, forum userbars, user-created MTA logos, etc. Also contains topics which cover general GTA modding areas that can be used in MTA, such as modelling.

      1,621
      posts
    5. Competitive gameplay

      Discussions about various MTA-related competitive gameplay events. Also gang (clan) forums.
      26,784
      posts
    6. Servers

      Looking for a server to play on? Looking for someone to host your server? Looking for a place to discuss with other server owners? Here's where to look.
      13,440
      posts
  4. Other

    1. General

      Non-MTA discussions. Anything you want.
      38,098
      posts
    2. Multi Theft Auto 0.5r2

      Discussion regarding Multi Theft Auto 0.5r2 for GTAIII and Vice City.
      617
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.
      768
      posts
  5. Archive

    1. 144,330
      posts
    2. Trash

      These posts have broken forum rules. They are stored here temporarily so offending users can see what they have done wrong.
      1,551
      posts
  • Posts

    • if getKeyState("mouse1") then if isCursorWithin(posX, referee.y, sizeX, sizeY) then this part of code will execute each frame (onClientRender) while you're holding left mouse button (getKeyState("mouse1")) and cursor is there (posX, referee.y, sizeX, sizeY) You need to add an additional variable to use click event once
    • because it makes no sense what you did   local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'look.png', angle, 0, -120 ) end end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender. -- hide it after 5 sec setTimer(function() removeEventHandler("onClientRender", root, renderDisplay) end, 5000, 1) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)  
    • Hi   I want to draw image for 5 second while when map starting local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'look.png', angle, 0, -120 ) end if dxDrawImage then setTimer(dxDrawImage, 5000, 1, 1) end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) Script works but image doesn't disappear after 5 seconds what's wrong ?
    • But no results in the script.