---
name: "getAmmoCargo"
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/getAmmoCargo
revid: 370851
updated: 2025-02-18T00:20:05Z
---

# getAmmoCargo

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

Locality: arguments **global**

## Description

Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.

## Syntax

```sqf
getAmmoCargo vehicle
```

**Parameters:**

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

**Returns:** [Number](../topics/Number.md) - ammo cargo value between 0 (empty, [destroyed](../commands/alive.md) or [null](../commands/isNull.md) [Object](../topics/Object.md)) and 1 (full), -1 if ammo cargo is not supported

before Arma 3 v1.96 -[inf](../commands/finite.md) was be returned if *vehicle* did not support ammo cargo

before Arma 3 v1.94 [Nothing](../topics/Nothing.md) was be returned if *vehicle* was not [alive](../commands/alive.md)

## Examples

### Example 1

```sqf
value = getAmmoCargo myVehicleName;
```

## See also

[setAmmoCargo](../commands/setAmmoCargo.md) · [getFuelCargo](../commands/getFuelCargo.md) · [getRepairCargo](../commands/getRepairCargo.md)

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