RedM Natives

GET_VEHICLE_BODY_HEALTH

Max 1000, min 0. Vehicle does not necessarily explode or become undrivable at 0.

Hash0x42113B857E33C16E
Runtime nameGetVehicleBodyHealth
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF271147EB7B40F12

Signature

float GET_VEHICLE_BODY_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Description

Seems related to vehicle health, like the one in IV.
Max 1000, min 0.
Vehicle does not necessarily explode or become undrivable at 0.

Usage

Lua
local retval = GetVehicleBodyHealth(vehicle)

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

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

See also

Sources

alloc8or RDR3 NativeDB

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