SA-MP Forums Archive
Question = Vehicle Damage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Question = Vehicle Damage (/showthread.php?tid=297464)



Question = Vehicle Damage - Money_Man - 16.11.2011

Guy's i know there is a FS out that deals with this. say if your car crashes into something and it has enough damage it shuts off the car. but i can't remember what its called. i done a search for something like "Vehicle Damage" but it wasn't in the search topics.

Thanks and any help is great


Re: Question = Vehicle Damage - Yuryfury - 16.11.2011

1.Set a timer
2. Get the vehicle health
3. If it is less than a certain value, freeze the vehicle/player.


Re: Question = Vehicle Damage - XGh0stz - 16.11.2011

While that is one solution to the problem at hand, I don't think that is what he's looking for. Shutting down the car probably meaning shutting off the engine. SetVehicleParams or something? I believe that is the function you are looking for (Someone please correct me if that function is incorrect though). But simply search the Wiki for every function to easily find that certain function plus alot more useful ones...

Also: This should've been posted in Scripting Discussion


AW: Question = Vehicle Damage - Babul - 16.11.2011

maybe having a look @ https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate points you into the rioght direction...


Re: Question = Vehicle Damage - Money_Man - 16.11.2011

No its a FS already made. i just can't remember the name of it to find it


Re: Question = Vehicle Damage - Dark734 - 16.11.2011

Make it. It's not hard.