UpdateVehicleDamageStatus

From SA-MP Wiki

Jump to: navigation, search


UpdateVehicleDamageStatus was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Used to set the damage values of the vehicle.


Parameters:
(vehicleid, panels, doors, lights, tires)
vehicleidThe ID of the vehicle you want to set the damage of.
panelsA set of bits containing the panel damage status.
doorsA set of bits containing the door damage status.
lightsA set of bits containing the light damage status.
tiresA set of bits containing the tire damage status.


ReturnsThis function doesn't return a specific value


new panels, doors, lights, tires;	
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); //Setting tires to 15 will pop them all

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools