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.7k
      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. 330.1k
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      261k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.4k
      posts
    3. Resources

      Everything else about resources.

      28.5k
      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.5k
      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.

      671
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      805
      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.5k
      posts
  • Posts

    • hola necesito ayuda este script lo hize yo pero por alguna razon no es detectado en el servidor de mta este es el .lua local marker = nil -- Variable para almacenar el marcador del garage local vehiclePositions = {} -- Almacena las posiciones de los vehículos en el garage -- Función para guardar el tuning del vehículo local function saveTuning(vehicle)     local tuning = getVehicleUpgrades(vehicle) -- Obtiene el tuning del vehículo     vehiclePositions[vehicle] = {tuning = tuning, position = {getElementPosition(vehicle)}} -- Guarda el tuning y la posición del vehículo end -- Función para restaurar el tuning del vehículo local function restoreTuning(vehicle)     local data = vehiclePositions[vehicle] -- Obtiene los datos guardados del vehículo     if data then         setVehicleUpgrades(vehicle, data.tuning) -- Restaura el tuning del vehículo         setElementPosition(vehicle, unpack(data.position)) -- Restaura la posición del vehículo     end end -- Función para crear el marcador en un lugar aleatorio local function createRandomMarker()     if marker then         destroyElement(marker) -- Destruye el marcador existente     end     local x, y, z = math.random(-2000, 2000), math.random(-2000, 2000), math.random(0, 200) -- Genera coordenadas aleatorias     marker = createMarker(x, y, z, "cylinder", 1.5, 255, 0, 0, 150) -- Crea el marcador en la ubicación aleatoria con color rojo     setMarkerColor(marker, 0, 0, 0, 255) -- Establece el color de los bordes a negro end -- Evento al entrar al marcador del garage addEventHandler("onMarkerHit", marker, function(hitElement, matchingDimension)     if matchingDimension and getElementType(hitElement) == "vehicle" then         saveTuning(hitElement) -- Guarda el tuning del vehículo al entrar al garage     end end) -- Evento al salir del marcador del garage addEventHandler("onMarkerLeave", marker, function(leftElement, matchingDimension)     if matchingDimension and getElementType(leftElement) == "vehicle" then         restoreTuning(leftElement) -- Restaura el tuning del vehículo al salir del garage     end end) -- Crea el marcador aleatorio al iniciar el recurso addEventHandler("onResourceStart", resourceRoot, function()     createRandomMarker() end) -- Crea un nuevo marcador aleatorio cada 30 minutos (1800000 milisegundos) setTimer(createRandomMarker, 1800000, 0)     este el .xml   <meta>     <info author="ThomasShelby" description="Script de garage para MTA" />     <script src="garage_script.lua" /> </meta>
    • A hard function skip maybe, just to figure out if it is actually the models. 🤔 addDebugHook( "preFunction", function ( ) return "skip" end, {"engineLoadCOL", "engineReplaceCOL", "engineLoadTXD", "engineImportTXD", "engineLoadDFF", "engineReplaceModel"}) (if possible run the hook on a resource with higher download priority)   If that is the issue, then rewrite the resources so that the models are loaded slower. For example load a model every X frame(s).
    • But as I said, it does not always crash, so it is hard to test by disabling them one by one, and there is nothing error message/crash report.   Any other methods?

Twitter Feed

×
×
  • Create New...