Vehicle respawning bug/help..
#1

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?
Reply
#2

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

No, I use AddStaticVehicleEx for all of my vehicles.
Reply
#4

hm than I have no solution. sry
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)