GetVehicleHealth
From SA-MP
[edit]
GetVehicleHealth
Get the health of a vehicle.
(vehicleid, &Float:health)
| vehicleid | ID of the vehicle |
| &Float:health | Variable to store the health in, passed by reference |
This function does not return a specific value, it's best to simply ignore it.
new Float:health; GetVehicleHealth(1, health);
[edit]
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetVehicleHealth: Set a vehicle's health.
