---
name: "addMagazines"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/addMagazines
revid: 343753
updated: 2023-07-16T17:29:01Z
---

# addMagazines

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

Locality: arguments **global** · effect **global**

## Description

Adds multiple magazines to the unit. For cargo containers use [addMagazineCargoGlobal](../commands/addMagazineCargoGlobal.md) command.

> [!NOTE]
> This command is meant to be used on human units. If used on vehicles, this command is Local Argument Global Effect.

## Syntax

```sqf
unit addMagazines [magazineName, count]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - a soldier
- `magazineName`: [String](../topics/String.md)
- `count`: [Number](../topics/Number.md) - number of magazines

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player addMagazines ["30Rnd_65x39_caseless_mag", 3];
```

## See also

[addMagazineGlobal](../commands/addMagazineGlobal.md) · [addMagazine](../commands/addMagazine.md) · [addMagazineCargo](../commands/addMagazineCargo.md) · [addMagazineCargoGlobal](../commands/addMagazineCargoGlobal.md) · [addMagazinePool](../commands/addMagazinePool.md) · [addMagazineTurret](../commands/addMagazineTurret.md) · [addMagazineAmmoCargo](../commands/addMagazineAmmoCargo.md)

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