UpdateVehicleDamageStatus
From SA-MP Wiki
Used to set the damage values of the vehicle.
(vehicleid, panels, doors, lights, tires)
| vehicleid | The ID of the vehicle you want to set the damage 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. |
| Returns | This 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.
- SetVehicleHealth: Set the health of a vehicle.
- GetVehicleHealth: Check the health of a vehicle.
- RepairVehicle: Fully repair a vehicle.
- GetVehicleDamageStatus: Get the vehicle damage state for each part individually.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnVehicleDamageStatusUpdate: Called when a vehicle's damage state changes.
