GET_VEHICLE_PETROL_TANK_HEALTH
Signature
float GET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Usage
local retval = GetVehiclePetrolTankHealth(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xe41595ce, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehiclePetrolTankHealth(vehicle);
// by hash
const retval = Citizen.invokeNative('0xe41595ce', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xe41595ce, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.