SA-MP Forums Archive
Spawn vehicle while runtime without 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawn vehicle while runtime without respawn (/showthread.php?tid=91440)



Spawn vehicle while runtime without respawn - Programie - 14.08.2009

Hi,

I want to spawn a vehicle using a command (/spawnvehicle [VehicleID]) that should not be respawned after exiting the vehicle.
AddStaticVehicle just works in the OnGameModeInit() and OnFilterScriptInit() functions.
The only one working command is CreateVehicle(). But this respawns the vehicle after a specific amount of seconds...


Re: Spawn vehicle while runtime without respawn - Rusty1337 - 14.08.2009

Set the respawn time to -1