SET_VEHICLE_PETROL_TANK_HEALTH
1000 is max health
Hash
0x6AB2918EE3BEC94CRuntime name
SetVehiclePetrolTankHealthNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x70DB57649FA8D0D8Signature
void SET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle, float health);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
health | float | — |
Returns void
Description
1000 is max health
Usage
SetVehiclePetrolTankHealth(vehicle, health)
-- always works, by hash
Citizen.InvokeNative(0x6AB2918EE3BEC94C, vehicle, health)JavaScript and C#
SetVehiclePetrolTankHealth(vehicle, health);
// by hash
Citizen.invokeNative('0x6AB2918EE3BEC94C', vehicle, health + 0.0000001);Function.Call((Hash)0x6AB2918EE3BEC94C, vehicle, health);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
GET_VEHICLE_PETROL_TANK_HEALTH1000 is max health
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.