GetVehicleDamageStatus

warning

This callback 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

Retrieve the damage statuses of a vehicle.

NameDescription
vehicleidThe ID of the vehicle to get the damage statuses of.
panelsA variable to store the panel damage data in, passed by reference.
doorsA variable to store the door damage data in, passed by reference.
lightsA variable to store the light damage data in, passed by reference.
tiresA variable to store the tire damage data in, passed by reference.

Returns

1: The function was executed successfully.

0: The function failed to execute. This means the vehicle specified does not exist.

Examples

new
panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
printf("Vehicle Status: [Panels]: %d - [Doors]: %d - [Lights]: %d - [Tires]: %d", panels, doors, lights, tires);

Related Functions