---
name: "magazines"
type: command
status: ok
groups: ["Unit Inventory", "Vehicle Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/magazines
revid: 378372
updated: 2026-04-03T16:50:03Z
---

# magazines

*Command · Unit Inventory, Vehicle Inventory · Arma 3 v0.50 · introduced in Operation Flashpoint v1.75*

## Description

Returns array of type names of all vehicle's magazines. When applied to a unit, the command behaves differently and will omit magazines already loaded into unit's weapons. Use [currentMagazine](../commands/currentMagazine.md) to get this information for a currently loaded magazine.

## Syntax

### Syntax 1

```sqf
magazines vehicle
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Strings](../topics/String.md)

### Syntax 2

*since arma3 2.00*

```sqf
magazines [vehicle, includeEmpty]
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - unit or vehicle
- `includeEmpty`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to include empty magazines

**Returns:** [Array](../topics/Array.md) of [Strings](../topics/String.md)

## Examples

### Example 1

```sqf
_mags = magazines player;
```

## See also

[currentMagazine](../commands/currentMagazine.md) · [magazinesTurret](../commands/magazinesTurret.md) · [magazinesDetail](../commands/magazinesDetail.md) · [magazinesAmmo](../commands/magazinesAmmo.md) · [magazinesAmmoFull](../commands/magazinesAmmoFull.md) · [ammo](../commands/ammo.md) · [weapons](../commands/weapons.md) · [backpacks](../commands/backpacks.md)

## Community notes

**Ceeeb**

In Operation Flashpoint v1.96, if a weapon is loaded with an empty magazine, that magazine will still be counted by this command. The [ammo](../commands/ammo.md) command can be used to check if a unit has any ammunition into it is last magazine.

---

**Dr_Eyeball** — 2011-11-25

This command does not include non-turret weapon magazines, such as smoke, flare or chaff magazines which are usually declared in the root of the vehicle's class, rather than in the Turrets hierarchy.

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