This function was added in SA-MP 0.3a and will not work in earlier versions!
(vehicleid, panels, doors, lights, tires)
vehicleid
The ID of the vehicle to get the damage statuses of.
panels
A set of bits containing the panel damage status
doors
A set of bits containing the door damage status
lights
A set of bits containing the light damage status
tires
A set of bits containing the tire damage status
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
For some useful functions for working with vehicle damage values, see here.
The following functions may be useful, as they are related to this function in one way or another.
The following callbacks might be useful, as they're related to this function in one way or another.