OnVehicleDeath not working properly
#1

Hey!

I'm just wondering, why doesnt OnVehicleDeath trigger if I fall in water in vehicle, but as soon as I leave vehicle in the water it works. I know this is known bug or whatever but couldnt find solution, any of you got idea?

Right now I'm just using OnPlayerUpdate to check if vehicle Z coordinate is below 0.0, but that is overload for server I think since it has to get coordinates each time you move.
Reply
#2

Once you fall into the water, and the vehicle is occupied it doesn't respawn, once you exit the vehicle the vehicle is unoccupied and will respawn means, it is totaled so it does work like it suppose to.
Reply
#3

Try to look here:

https://github.com/urShadow/Pawn.Rak...tiVehicleSpawn
https://forum.sa-mp.com/showpost.php...5&postcount=44
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)