RedM Natives

GET_VEHICLE_ENGINE_HEALTH

Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.

Hash0x90DBFFAC43B22081
Runtime nameGetVehicleEngineHealth
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC45D23BAF168AAB8

Signature

float GET_VEHICLE_ENGINE_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Description

Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.

Minimum: -4000
Maximum: 1000

-4000: Engine is destroyed
0 and below: Engine catches fire and health rapidly declines
300: Engine is smoking and losing functionality
1000: Engine is perfect

Usage

Lua
local retval = GetVehicleEngineHealth(vehicle)

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

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

See also

Sources

alloc8or RDR3 NativeDB

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