Vehicles keep despawning - 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: Vehicles keep despawning (
/showthread.php?tid=633175)
Vehicles keep despawning -
onlyrage - 26.04.2017
Dynamic vehicles keep respawning for an unknown reason, all my vehicles have -1 respawn delay yet they keep randomly despawning, I seem not to figure out where the problem is, any thoughts?
Код:
vehicleid = AddStaticVehicleEx(modelid, x, y, z, a, color1, color2, -1);
Re: Vehicles keep despawning -
Dayrion - 26.04.2017
Change -1 by 0, it should work
Re: Vehicles keep despawning -
Vince - 26.04.2017
What do you mean "dynamic" vehicles? That native creates static vehicles, as is evident from its name.
It can also sometimes happen that vehicles stream in before the world streams in which causes the vehicles to fall into the void. This respawns them on the nearest road node. Meaning that if you have a custom island of some sort the vehicles will respawn back on the mainland.