No dmg
#1

hi guys , how can i do something to a car not to take damage from people or other cars ? only if the driver crash the car can some1 give me a tutorial or something i didn't find on internet
Reply
#2

Use the callback "OnVehicleDamageStatusUpdate" along with "SetVehicleHealth" or "RepairVehicle".

EDIT: Sorry, didn't see that you wished for the car only to take damage from crashing.
Only way to do this would be to first check where the damage to the vehicle is coming from. I don't know a method for that unfortunately.
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=490436

Just download the inc.
Use the callback

PHP код:
OnPlayerCrashVehicle(playeridvehicleidFloat:damage)
DescriptionCalled when a player crashes a vehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)