Posts: 737
Threads: 338
Joined: Jan 2013
Hi,
I want to ask. How to create a protect from vehicle repairing? i mean cheater press F1 of F2 and vehicle get fixed?
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Whenever a vehicle gets damaged or repaired by your script, you can store the damage-status in an enum using GetVehicleDamageStatus.
You can use a timer (or possibly OnVehicleDamageStatusUpdate callback) to set the damage back to whatever is stored.
The hacker would not be able to keep his vehicle repaired as the timer or callback will reset his hacks.