Jump to content

WillChris

Members
  • Posts

    4
  • Joined

  • Last visited

Details

  • Gang
    canaã
  • Location
    Brasil
  • Occupation
    arquiteto
  • Interests
    scripts

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

WillChris's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Hello, I create the map in the editor, I can position the objects perfectly, but when I save the map the game does not recognize the ids, the object is in the .map but it is not being loaded by the game,
  2. LIMIT MULTI-TRAILER SPAWN, AND MAKE PREVIOUS TRAILERS DISAPPEAR. I need this script to allow the player to do the command only once, and when trying a next command, the previous one will disappear. follow my script, and if possible do it and briefly explain what was done, I'm a layman in programming! local trailers = {} local hooktruck = {} addCommandHandler ("trailers", function (thePlayer, cmd, trailernum) if not trailernum then outputChatBox ("* Syntax is: /trailers number", thePlayer, 255, 0, 0) return end local num = tonumber (trailernum) if type (num) ~= "number" then outputChatBox ("* Invalid trailer number provided", thePlayer, 255, 0, 0) return end if not trailers[thePlayer] then trailers[thePlayer] = {} end if not hooktruck[thePlayer] then hooktruck[thePlayer] = {} end local myVeh = getPedOccupiedVehicle (thePlayer) for i=1, num do -- if it's the first trailer, attach it to the original truck if i == 1 then trailers[thePlayer][1] = createVehicle (591, 0, 0, 10) setElementRotation (trailers[thePlayer][1], getElementRotation (myVeh)) setTimer (attachTrailerToVehicle, 200, 1, myVeh, trailers[thePlayer][1]) -- if it's not then else -- Here we are creating invisible trucks and attaching them to the back of each trailer so we can have multiple trailers hooktruck[thePlayer][i-1] = createVehicle (514, 0, 750, 1500) setElementAlpha (hooktruck[thePlayer][i-1], 0) setElementCollisionsEnabled (hooktruck[thePlayer][i-1], false) setVehicleDamageProof (hooktruck[thePlayer][i-1], true) setElementRotation (hooktruck[thePlayer][i-1], getElementRotation (myVeh)) addEventHandler ("onVehicleStartEnter", hooktruck[thePlayer][i-1], cancelRoadtrainEntering) setTimer (attachElements, 300 * i, 1, hooktruck[thePlayer][i-1], trailers[thePlayer][i-1], 0, -0.1, 0) -- Let's create our trailer for attaching to invisible trucks trailers[thePlayer] = createVehicle (591, 2000, 2000, 500) setElementRotation (trailers[thePlayer], getElementRotation (myVeh)) setTimer (attachTrailerToVehicle, 400 * i, 1, hooktruck[thePlayer][i-1], trailers[thePlayer]) end end end ) function cancelRoadtrainEntering () cancelEvent() end
  3. Bom dia, desculpe mas estou sem PC a alguns dias pois estou em viagem, mas a linha de código utilizada foi uma já de outro mod no caso de uma favela, como eu queria ligar tudo em um só mod somente adicionei mais linhas no script referente aos arquivos .Col .txd e .dff, adicionei também no meta e após isso joguei os arquivos dentro da pasta junto com os arquivos já existentes, no entanto os modelos da favela funcionou corretamente, somente o modelo da casa q ficou com colisão do objeto original na qual ela substituía bom a favela utilizada foi essa: https://www.mtabrasil.com.br/2018/09/barracos-favela-fivem.html?m=1 Assim que eu retornar de viagem mostra a linha de código que fiz mas só usei o Ctrl+c e Ctrl+v já que o código ja estava pronto
  4. Quando tento converter alguma casa do GTA SA para MTA a casa fica sem colisão porém o arquivo .Col está na pasta e está configurado na cliente.Lua alguém sabe o porque isso tá acontecendo e como resolver?
×
×
  • Create New...