SA-MP Forums Archive
Respawning cars... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Respawning cars... (/showthread.php?tid=160368)



Respawning cars... - GloomY - 16.07.2010

I have a problem in Godfather with respawning cars. The cars respawn at their location after a few seconds and they don't respawn at the time I put in AddStaticVehicle. How can I fix this?


Re: Respawning cars... - DJDhan - 16.07.2010

CreateVehicle has a parameter which sets the vehicle created by it to respawn after a certain time you define.

If you use AddStaticVehicle to create a vehicle, it will only respawn after it has been destroyed.


Re: Respawning cars... - GloomY - 16.07.2010

Sorry, I ment AddStaticVehicleEx, so it has a respawn time.
My Car looks like this : AddStaticVehicleEx(526,1977.6748,-1995.8590,13.3205,358.4391,49,11,3000);
And it respawns after few seconds...


Re: Respawning cars... - GloomY - 17.07.2010

Someone help?


Re: Respawning cars... - LZLo - 15.08.2010

let's try

AddStaticVehicleEx(526,1977.6748,-1995.8590,13.3205,358.4391,49,11,50000);

it is better