Jump to content

Respawn Vehicle [HELP]


Recommended Posts

Hello,

below you can see 2 simple functions. How I can set them up that they will only work for the vehicle IDs on the top?

Starting with scripting... dont have a big knowledge...

local Vehicles = { [601]=true,[427]=true,[551]=true,[596]=true,[523]=true,[582]=true,[488]=true,[525]=true,[420]=true } 
  
function respawnExplodedVehicle() 
    setTimer(respawnVehicle, 5000, 1, source) 
end 
addEventHandler("onVehicleExplode", root, respawnExplodedVehicle) 
  
  
function respawnVehicleOnExit() 
    setTimer(respawnVehicle, 10000, 1, source) 
end 
addEventHandler("onVehicleExit", root, respawnVehicleOnExit) 
  
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...