Question = Vehicle Damage
#1

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

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

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
Reply
#4

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

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

Make it. It's not hard.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)