SA-MP Forums Archive
Vehicle Respawn Position - 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: Vehicle Respawn Position (/showthread.php?tid=187587)



Vehicle Respawn Position - baske007 - 03.11.2010

Hi everyone,

Just a little question:
How can I set a vehicle's respawn position? Like when I save the position of my vehicle, it will update the mysql etc, but how can I make sure the vehicle will respawn after death on that place?

Bas


Re: Vehicle Respawn Position - Miguel - 03.11.2010

Destroy the vehicle and create it again using the new coords. You could also use the callback "OnVehicleSpawn" and set its position to the coords on the MySQL database.