Jump to content

Forums

  1. Multi Theft Auto: San Andreas 1.x

    1. Support for MTA:SA 1.x

      HELP! HELP! Need help? Post here.

      55.4k
      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.

      11
      posts
    3. Open Source Contributors

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

      1.3k
      posts
    4. Suggestions

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

      7.7k
      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.

      4.6k
      posts
  2. General MTA

    1. News

      News and updates on Multi Theft Auto.

      9.8k
      posts
    2. Media

      User-made screens and movies go here.

      4.5k
      posts
    3. Site/Forum/Discord/Mantis/Wiki related

      Share your comments & concerns about our services.

      5.6k
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!

      2.1k
      posts
    5. 330.8k
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      261.7k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.4k
      posts
    3. Resources

      Everything else about resources.

      28.7k
      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.

      2.5k
      posts
    5. Competitive gameplay

      Discussions about various MTA-related competitive gameplay events. Also gang (clan) forums.

      26.7k
      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.

      15.8k
      posts
  4. Other

    1. General

      Non-MTA discussions. Anything you want.

      38.1k
      posts
    2. Multi Theft Auto 0.5r2

      Discussion regarding Multi Theft Auto 0.5r2 for GTAIII and Vice City.

      684
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      814
      posts
  5. Archive

    1. 144k
      posts
    2. Trash

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

      3.4k
      posts
  • Posts

    • Hey guys... I've been getting help with things in MTA SA. I have 3 major questions... 1) I am thinking of making a Community Resource to spread Good Karma from all the help I am getting. Would people use a Community Resource from 2025? 2)In 2025 (by hosting the server not selling it), is there any profit in being a Server Host? 3)If I can make a profit how should I go about generating an income?   (QUESTION 1 IS ASKING IF IM WASTING MY TIME MAKING A COMMUNITY RESOURCE AND QUESTIONS 2 AND 3 ARE QUESTIONS ABOUT MY SERVER)
    • The truth, I had abandoned this project and did not have the opportunity to try your script.   But today out of curiosity I asked chatGPT to write me the script and this is the result   local vehicleTimers = {} -- Memorizza i timer dei veicoli -- Funzione per controllare se il veicolo è in aria function checkVehicleAir(vehicle) if not isElement(vehicle) then return end if isVehicleOnGround(vehicle) then resetExplosionTimer(vehicle) else startExplosionTimer(vehicle) end end -- Avvia il timer di esplosione function startExplosionTimer(vehicle) if vehicleTimers[vehicle] then return end -- Evita più timer sullo stesso veicolo vehicleTimers[vehicle] = setTimer(function() if isElement(vehicle) and not isVehicleOnGround(vehicle) then blowVehicle(vehicle) -- 💥 Esplode il veicolo! vehicleTimers[vehicle] = nil end end, 5000, 1) -- 5 secondi di tempo end -- Resetta il timer se il veicolo tocca il suolo function resetExplosionTimer(vehicle) if vehicleTimers[vehicle] then killTimer(vehicleTimers[vehicle]) -- Ferma il timer vehicleTimers[vehicle] = nil end end -- Controlla lo stato dei veicoli in un loop function monitorVehicles() for _, vehicle in ipairs(getElementsByType("vehicle")) do if getVehicleController(vehicle) then -- Controlla solo i veicoli con giocatori dentro checkVehicleAir(vehicle) end end end setTimer(monitorVehicles, 1000, 0) -- Controlla ogni secondo -- Quando un veicolo esplode, rimuove il timer associato addEventHandler("onVehicleExplode", root, function() vehicleTimers[source] = nil end) chatGPT can write all kinds of functions, it's amazing
    • Hey guys... I post for help almost everyday and I do feel bad about that... I want to be able to stand on my feet and hopefully after I figure this out I'll be able to focus on things I'm good at. I downloaded this resource on the MTA SA Community (Resources). It is a Square Minimap (Radar) and F11 Full Screen Map. These are pictures of my Server based around the Map so far: Picture of MTA SA with Minimap (Radar) Picture of MTA SA with F11 Map (Full Size Map) I did manage to get the ShowCursor() function to work and it works well, but to move Left (Press Left Button) Right (Press Right Button) Up (Press Up Button) Down (Press Down Button) I need to actually use the Buttons and can't use the Mouse. ZoomIn is (num_add) ZoomOut is (num_sub) I tried to add a keybind for ZoomIn/ZoomOut but it didn't work... Can someone show me how to Keybind a Function within the F11 Map (Like Zoom In / Out, Grab Map with Mouse and Move it) This is my code so far:   --[[---------------------------------------------------- -- client script main -- @author Banex -- @update 24/03/2016 ----------------------------------------------------]]-- function onClientResourceStart() map = Map.new():init() map:setBounds(x*30,y*30,x*1306,y*708) map:setAlpha(200) radar = Map.new():init() radar:setBounds(x*20, y*560, x*281, y*193) radar:setStyle(2) radar:setAlpha(200) radar:setBlipSize(x*24) radar:setVisible(true) map.Switch = function() toggleCursor() mapKeys() map:setVisible(not map:isVisible()) radar:setVisible(not map:isVisible()) showChat(not map:isVisible()) end bindKey('F11', 'down', map.Switch) setPlayerHudComponentVisible("radar",false) toggleControl("radar",false) end function toggleCursor() local cursorState = isCursorShowing() -- Retrieve the state of the player's cursor local cursorStateOpposite = not cursorState -- The logical opposite of the cursor state showCursor(cursorStateOpposite) -- Setting the new cursor state end function mapKeys() bindKey("mouse_wheel_up", "down", radar_zoom_in) --This doesn't work bindKey("mouse_wheel_down", "down", radar_zoom_out) --And This doesn't work end addEventHandler("onClientResourceStart",resourceRoot,onClientResourceStart) function onClientResourceStop() setPlayerHudComponentVisible("radar",true) toggleControl("radar",true) end addEventHandler("onClientResourceStop",resourceRoot,onClientResourceStop) I'll stop blowing up this forum after this question has been resolved
    • Are you using this function? https://wiki.multitheftauto.com/wiki/CreateProjectile   Attach a dummy vehicle to the object and set the vehicle as the creator of the projectile. Because else your camera is used for the direction.

Twitter Feed

×
×
  • Create New...