SA-MP Forums Archive
Vehicle spawn point - 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: Vehicle spawn point (/showthread.php?tid=628164)



Vehicle spawn point - HidroDF - 06.02.2017

Hello, I want to know if there's an option to get the Vehicle Spawn Position. My idea is to create a work and when they have finished the work, set a checkpoint exactly where the car gets spawned first time.

Something like
Код:
GetVehicleSpawnPoint(vehicleid);
or something else. Thanks!

Thanks!


Re: Vehicle spawn point - JesterlJoker - 06.02.2017

Do you mean like respawn the vehicle?

Set the vehicle to have a respawn time of one millisecond and when they reach the checkpoint or finish the job just destroy the car and it will respawn directly.

use
PHP код:
CreateVehicleEx