SA-MP Forums Archive
staticvehicle, solution? - 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: staticvehicle, solution? (/showthread.php?tid=648796)



staticvehicle, solution? - dani18 - 28.01.2018

The problem is, in that i added some vehicles in OnGameModeInit (how obvious is AddStaticVehicle). When i get into it, i have a good time, and then it disappears while i'm driving, it just disappears.

What do you recommend me?



Re: staticvehicle, solution? - Davidmkd123 - 28.01.2018

It respawns or it destroys itself?


Re: staticvehicle, solution? - Hunud - 28.01.2018

It respawns probably, configure the respawn_delay


Re: staticvehicle, solution? - dani18 - 29.01.2018

Quote:
Originally Posted by Davidmkd123
View Post
It respawns or it destroys itself?
thanks to the 2, i was finally able to find what i expected 'AddStaticVehicleEx', + rep.


Re: staticvehicle, solution? - Sew_Sumi - 29.01.2018

Ummm, this won't cause it to respawn while you are driving it... I don't even think getting out of it would cause it to respawn.


Re: staticvehicle, solution? - Mugala - 29.01.2018

Quote:
Originally Posted by Sew_Sumi
View Post
Ummm, this won't cause it to respawn while you are driving it... I don't even think getting out of it would cause it to respawn.
yeah it wont respawn when you're driving it.
there must be other cause that respawns a vehicle, possible wrongly placed SetVehicleToRespawn in other code.