Jump to content

Vehicles set to respawn, don't respawn


Fabio(GNR)

Recommended Posts

So basically i have created a vehicle, i set it toggleVehicleRespawn to true and the idletime but it doesnt respawn :/

code:

function start ()  
veh57 = createVehicle (493 , 3707.64453125, -2059.986328125 , -0.15620525181293 , 3.0322265625 , 359.93408203125, 75.569458007813 )  
 toggleVehicleRespawn ( veh57, true ) 
 setVehicleIdleRespawnDelay (  veh57, 35000 ) 
end  
  
addEventHandler ( 'onResourceStart', getResourceRootElement(getThisResource()), start ) 

So whats wrong?

EDIT: should i use spawnvehicle instead of createVehicle?

Link to comment
veh57 = createVehicle (493 , 3707.64453125, -2059.986328125 , -0.15620525181293 , 3.0322265625 , 359.93408203125, 75.569458007813 ) 
function start () 
 toggleVehicleRespawn ( veh57, true ) 
 setVehicleIdleRespawnDelay (  veh57, 35000 ) 
end 
  
addEventHandler ( 'onResourceStart', getResourceRootElement(getThisResource()), start ) 

Link to comment
veh57 = createVehicle (493 , 3707.64453125, -2059.986328125 , -0.15620525181293 , 3.0322265625 , 359.93408203125, 75.569458007813 ) 
function start () 
 toggleVehicleRespawn ( veh57, true ) 
 setVehicleIdleRespawnDelay (  veh57, 35000 ) 
end 
  
addEventHandler ( 'onResourceStart', getResourceRootElement(getThisResource()), start ) 

Thanks but it still doesn't work even after adding setvehiclerespawnposition

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