SA-MP Forums Archive
Vehicle respawning bug/help.. - 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 respawning bug/help.. (/showthread.php?tid=274893)



Vehicle respawning bug/help.. - lolumadd_ - 07.08.2011

I have a script that lowers vehicles health. I use SetVehicleHealth of course on an unoccupied vehicle. The vehicle goes into flames and it explodes. But, the vehicle never respawns. The black exploded object of the car only remains and stays there.

If you leave the area and come back, you see the cars catch on fire and explode again. The only way to fix this is to respawn it manually using /dl and a /spawnvehicle command.

So what is wrong and what should I do to fix this?


AW: Vehicle respawning bug/help.. - xXGaryXx - 07.08.2011

I think you use CreateVehicle, try AddStaticVehicle, that should work.


Re: Vehicle respawning bug/help.. - lolumadd_ - 07.08.2011

No, I use AddStaticVehicleEx for all of my vehicles.


AW: Vehicle respawning bug/help.. - xXGaryXx - 07.08.2011

hm than I have no solution. sry


Re: Vehicle respawning bug/help.. - RyDeR` - 07.08.2011

Guess that's just a weird bug - I experience the same thing.

Just destroy the vehicle completely and create it again under this callback, otherwise I have no other solution right now:
https://sampwiki.blast.hk/wiki/OnVehicleDeath