RedM Natives

GET_VEHICLE_PETROL_TANK_HEALTH

Hash0xE41595CE
Runtime nameGetVehiclePetrolTankHealth
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Usage

Lua
local retval = GetVehiclePetrolTankHealth(vehicle)

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

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

Sources

Cfx.re native reference

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