---
name: "itemCargo"
type: command
status: ok
groups: ["Vehicle Inventory"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/itemCargo
revid: 376929
updated: 2025-12-31T20:24:50Z
---

# itemCargo

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

Locality: arguments **global**

## Description

Get array with items from ammo box (or any general weapon holder container).

## Syntax

```sqf
itemCargo object
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - vehicle or ammo box

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - ["ItemType1","ItemType2","ItemType3"...]

## Examples

### Example 1

```sqf
hint str itemCargo vestContainer player;
```

## See also

[getItemCargo](../commands/getItemCargo.md) · [addItemCargo](../commands/addItemCargo.md) · [addItemCargoGlobal](../commands/addItemCargoGlobal.md) · [clearItemCargo](../commands/clearItemCargo.md) · [clearItemCargoGlobal](../commands/clearItemCargoGlobal.md) · [weaponCargo](../commands/weaponCargo.md) · [magazineCargo](../commands/magazineCargo.md)

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