RedM Natives

GET_VEHICLE_PETROL_TANK_HEALTH

1000 is max health

Hash0x1E5A9B356D5098BE
Runtime nameGetVehiclePetrolTankHealth
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7D5DABE888D2D074

Signature

float GET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Description

1000 is max health

Usage

Lua
local retval = GetVehiclePetrolTankHealth(vehicle)

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

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

See also

Sources

alloc8or RDR3 NativeDB

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