GET_VEHICLE_PETROL_TANK_HEALTH
1000 is max health
Hash
0x1E5A9B356D5098BERuntime name
GetVehiclePetrolTankHealthNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x7D5DABE888D2D074Signature
float GET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Description
1000 is max health
Usage
local retval = GetVehiclePetrolTankHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1E5A9B356D5098BE, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehiclePetrolTankHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0x1E5A9B356D5098BE', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x1E5A9B356D5098BE, vehicle);See also
SET_VEHICLE_PETROL_TANK_HEALTH1000 is max health
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.