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.

      54.5k
      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.4k
      posts
    3. Site/Forum/Discord/Mantis/Wiki related

      Share your comments & concerns about our services.

      5.5k
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!

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

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      260.6k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.3k
      posts
    3. Resources

      Everything else about resources.

      28.4k
      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.4k
      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.4k
      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.

      659
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      799
      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.

      2.3k
      posts
  • Posts

    • We no longer provide ban support. If you need to know how long the ban lasts try connecting to a server (if that doesn't work, connect to a MTA:BLUE server through our default client)
    • Hello thank you guys for assisting me, it's now working Sorry for being a bit inquirer. I'm facing another thing, i did find a solution for it tho but it's not very good. Lemme show you    local helic = {} function startM() if (not isElement(source) and getElementType(source) == "player") then return false end if (not isPedInVehicle(source)) then return false end local heli = createVehicle(501, 2625.53247, 733.39642, 10.82031) table.insert(helic, heli) warpPedIntoVehicle(source, heli) setElementAlpha(source, 0) bindKey(source, "h", "down", attachBomb) for i, k in ipairs(Bombs) do Bomb1[i] = createObject(1654, Bombs[i][1], Bombs[i][2], Bombs[i][3] - 0.5) Bomb2[i] = Bomb1[i] setElementCollisionsEnabled(Bomb1[i], false) end addEventHandler("onVehicleExit", heli, onExit) ---triggerClientEvent(source, "clientPed", source, startM) end addEvent("startMission", true) addEventHandler("startMission", root, startM) function onHit(player) if (#m > 0 and #b > 0) then destroyElement(m[1]) destroyElement(b[1]) table.remove(m, 1) table.remove(b, 1) end if (not helic[1]) then return false end local lmnt = getAttachedElements(helic[1]) if (not lmnt) then return false end for i, k in ipairs(lmnt) do if (getElementType(lmnt[i]) == "object" and isElementAttached(lmnt[i])) then detachElements(lmnt[i], helic[1]) plantedBombs = plantedBombs + 1 if (plantedBombs == 1) then outputChatBox("Congratulations, you have passed the mission and got $50,000 as a reward!", root, 34, 139, 34) else outputChatBox("Bomb has been successfully installed, Do the same with the rest!", root, 34, 139, 34) outputChatBox(plantedBombs) end end end triggerClientEvent(player, "updatePlantedBombs", root, plantedBombs) if (plantedBombs == 1) then triggerEvent("stopMission", root, onHit) triggerClientEvent(resourceRoot, "stopM", resourceRoot, onHit) end end I've created a vehicle inside a function, if i knew from the start how to use the variable in other functions when it's inside a function, i wouldn't add it inside a table, i wanna use sometimes the vehicle is client but sadly i couldn't. Can anyone tell me what should i exactly do (Please dont tell me to put the variable global, as i dont want to cause setting it as global will create the vehicle once when the resource start and i dont wanna that)   Also, the getAttachedElements(helic[1]) is sending a warning saying that it requires an argument. i guess it's because i'm using helic[1] as an argument.  Help me, please. i'm new into lua and i wanna create my first working script
    • Добрый день подскажите пожалуйста сколько осталось до конца бана F59A9642DCCAEC6A646132F97E7063F2  
    • Welcome to TDA//Gaming Roleplay Scripts All rights reserved. It is protected by Hasan Özoğlu. It cannot be used for commercial purposes. All scripts I developed in 2017 are now freely available. You can use it to develop your projects or use it directly to set up a server. You can set up any earning system you want on your server, but these scripts cannot be sold or purchased for money. Release Date: Q4 2017 For Multi Theft Auto Game Look at: http://captaintvz.blogspot.com Github Repo: https://github.com/captainTvZx/TDA-Gaming-Roleplay-Scripts.git
    • trigging in the for is not the most appropriate, the best would be outside the for for i, k in ipairs(Bomb2) do if (isElementAttached(Bomb2[i])) then detachElements(Bomb2[i], helic[1]) plantedBombs = plantedBombs + 1 outputChatBox("Bomb has been successfully installed, Do the same with the rest!", root, 34, 139, 34) outputChatBox(plantedBombs) ---- This returns what it should return end end triggerClientEvent(player, "updatePlantedBombs", root, plantedBombs)  

Twitter Feed

×
×
  • Create New...