GetVehicleDamageStatus

From SA-MP Wiki

Jump to: navigation, search


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


Check the damage values of a vehicle.


Parameters:
(vehicleid, &panels, &doors, &lights, &tires)
vehicleidThe ID of the vehicle you want to get the damage of.
panelsThe integer to store the panel damage data in, passed by reference.
doorsThe integer to store the door damage data in, passed by reference.
lightsThe integer to store the light damage data in, passed by reference.
tiresThe integer to store the tire damage data in, passed by reference.


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

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