GetVehicleDamageStatus TR
From SA-MP Wiki
Description:
Bu fonksiyon aracın belirli bölgelerindeki hasar durumunu verir.
(vehicleid, &panels, &doors, &lights, &tires)
vehicleid | Hasar bilgisi alınacak aracın ID numarası. |
panels | Aracın panellerindeki hasar durumu. |
doors | Aracın kapılarındaki hasar durumu. |
lights | Aracın farlarındaki hasar durumu. |
tires | Aracın tekerleklerindeki hasar durumu. |
new panels,doors,lights,tires; GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires); printf("Araç Hasar Durumu : [ID] : %d - [Paneller] : %d - [Kapılar] : %d - [Farlar] : %d - [Tekerler] : %d", vehicleid, panels, doors, lights, tires);
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- UpdateVehicleDamageStatus: Update the vehicle damage.
- SetVehicleHealth: Set the health of a vehicle.
- GetVehicleHealth: Check the health of a vehicle.
- RepairVehicle: Fully repair a vehicle.
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.