# VEHICLE::SET_VEHICLE_PETROL_TANK_HEALTH

- **Hash:** `0x6AB2918EE3BEC94C`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetVehiclePetrolTankHealth`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_PETROL_TANK_HEALTH

## Signature

```c
void SET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle, float health);
```

## Parameters

- `vehicle` (`Vehicle`)
- `health` (`float`)

## Returns

`void`

## Description

1000 is max health

## Usage

### Lua

```lua
SetVehiclePetrolTankHealth(vehicle, health)

-- always available, by hash
Citizen.InvokeNative(0x6AB2918EE3BEC94C, vehicle, health)
```

### JavaScript

```js
SetVehiclePetrolTankHealth(vehicle, health);

// by hash
Citizen.invokeNative('0x6AB2918EE3BEC94C', vehicle, health + 0.0000001);
```

### C#

```csharp
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. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

## See also

- [VEHICLE::GET_VEHICLE_PETROL_TANK_HEALTH](https://natives.borderlinerp.com/natives/VEHICLE/GET_VEHICLE_PETROL_TANK_HEALTH.md) — 1000 is max health

*Sources: alloc8or RDR3 NativeDB.*
