RedM Natives

GET_VEHICLE_BODY_HEALTH

Hash0x2B2FCC28
Runtime nameGetVehicleBodyHealth
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_VEHICLE_BODY_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Usage

Lua
local retval = GetVehicleBodyHealth(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2b2fcc28, vehicle, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetVehicleBodyHealth(vehicle);

// by hash
const retval = Citizen.invokeNative('0x2b2fcc28', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x2b2fcc28, vehicle);

See also

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.