GET_VEHICLE_BODY_HEALTH
Signature
float GET_VEHICLE_BODY_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Usage
local retval = GetVehicleBodyHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x2b2fcc28, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehicleBodyHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0x2b2fcc28', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x2b2fcc28, vehicle);See also
SET_VEHICLE_BODY_HEALTHp2 often set to 1000.0 in the decompiled scripts.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.