UpdateVehicleDamageStatus

warning

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

tip

For some useful functions for working with vehicle damage values, see here.

Description

Sets the various visual damage statuses of a vehicle, such as popped tires, broken lights and damaged panels.

NameDescription
vehicleidThe ID of the vehicle 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.

Returns

This function does not return any specific values.

Examples

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