SA-MP Forums Archive
Problem with exploded vehicle! - 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: Problem with exploded vehicle! (/showthread.php?tid=605160)



Problem with exploded vehicle! - nGen.SoNNy - 15.04.2016

If i set vehicle health to 200.0 the car it's starting to smoke and fire and explodes, the problem it's that it doesn't respawn. It's created with AddStaticVehicle...(if i'm in the car and i smash it till it explode the car will respawn but if i set the health with a command outside the vehicle it wont respawn and the OnVehicleSpawn it's not called for that vehicle, also after it's death if i use /gotocar ID will teleport me to the location of the vehicle but the vehicle it's not there)


Re: Problem with exploded vehicle! - CalvinC - 15.04.2016

Use AddStaticVehicleEx or CreateVehicle.


Re: Problem with exploded vehicle! - nGen.SoNNy - 15.04.2016

It's sure this will resolve my problems?


Re: Problem with exploded vehicle! - AbyssMorgan - 15.04.2016

lol, set vehicle health 1000
hp < 250.0 - damaged