RedM Natives

GET_VEHICLE_ENGINE_HEALTH

Hash0x8880038A
Runtime nameGetVehicleEngineHealth
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_VEHICLE_ENGINE_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Usage

Lua
local retval = GetVehicleEngineHealth(vehicle)

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

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

Sources

Cfx.re native reference

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