SA-MP Forums Archive
cars never respawn - 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)
+--- Thread: cars never respawn (/showthread.php?tid=511489)



cars never respawn - Lirbo - 05.05.2014

how can i make the vehicles never respawn? (i want they will respawn after they exploded)


Re: cars never respawn - DobbysGamertag - 05.05.2014

Set the respawn time in https://sampwiki.blast.hk/wiki/CreateVehicle to -1


Re: cars never respawn - Lirbo - 05.05.2014

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
Set the respawn time in https://sampwiki.blast.hk/wiki/CreateVehicle to -1
but i can't just stop the respawn with addstaticvehicle?


Re: cars never respawn - Konstantinos - 05.05.2014

Quote:
Originally Posted by Lirbo
Посмотреть сообщение
but i can't just stop the respawn with addstaticvehicle?
AddStaticVehicle doesn't have a respawn delay parameter so if you want to add some vehicles when the server starts will be fine. However, if you need to create a vehicle while the server is running then you won't be able to do it with it but with CreateVehicle instead. So set it to -1 as DobbysGamertag said for those vehicles.


Re: cars never respawn - Lirbo - 05.05.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
AddStaticVehicle doesn't have a respawn delay parameter so if you want to add some vehicles when the server starts will be fine. However, if you need to create a vehicle while the server is running then you won't be able to do it with it but with CreateVehicle instead. So set it to -1 as DobbysGamertag said for those vehicles.
ok... btw how can i turn the engine off/on in vehicle? can u send me link to samp wiki?


Re: cars never respawn - Konstantinos - 05.05.2014

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx