Fabio(GNR) Posted December 27, 2010 Share Posted December 27, 2010 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
Namorek Posted December 27, 2010 Share Posted December 27, 2010 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
Fabio(GNR) Posted December 27, 2010 Author Share Posted December 27, 2010 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now