---
name: "getFuelCargo"
type: command
status: ok
groups: ["Vehicle Inventory"]
arma3_since: "0.56"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getFuelCargo
revid: 364121
updated: 2024-05-04T22:07:43Z
---

# getFuelCargo

*Command · Vehicle Inventory · Arma 3 v0.56*

Locality: arguments **global**

## Description

Returns the fuel amount (1 is full) in the cargo space of a refueling vehicle.

> [!NOTE]
> Since Arma 3 v1.96 the return value for vehicles that are not configured to have ability to refuel other vehicles is -1. (Prior to that the value was negative infinity)

## Syntax

```sqf
getFuelCargo vehicle
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md) - fuel cargo value, -1 if fuel cargo is not supported, 0 if the vehicle is \![alive](../commands/alive.md) or [isNull](../commands/isNull.md)

## Examples

### Example 1

```sqf
value = getFuelCargo myVehicleName;
```

## See also

[setFuelCargo](../commands/setFuelCargo.md) · [getAmmoCargo](../commands/getAmmoCargo.md) · [getRepairCargo](../commands/getRepairCargo.md)

<sub>Source: [BI Community Wiki — getFuelCargo](https://community.bistudio.com/wiki/getFuelCargo) (revision 364121).</sub>
