---
name: "compatibleMagazines"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "2.10"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/compatibleMagazines
revid: 376900
updated: 2025-12-20T16:40:46Z
---

# compatibleMagazines

*Command · Weapons · Arma 3 v2.10*

## Description

Returns all magazines that can be loaded in the given weapon or all magazines containing the provided ammo. No compatible magazines are returned for submunition or missiles.

## Syntax

### Syntax 1

```sqf
compatibleMagazines weaponOrAmmo
```

**Parameters:**

- `weaponOrAmmo`: [String](../topics/String.md) - weapon class name or Arma 3 v2.22 ammo class name

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - all magazines that can be loaded in **any muzzle** of the given weapon or magazines containing given ammo.

### Syntax 2

```sqf
compatibleMagazines [weapon, muzzle]
```

**Parameters:**

- `weapon`: [String](../topics/String.md) - weapon class name
- `muzzle`: [String](../topics/String.md) - muzzle name ("this" is supported for primary muzzle)

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - all magazines that can be loaded in the given muzzle of the given weapon.

## Examples

### Example 1

```sqf
compatibleMagazines "arifle_Katiba_GL_F";
```

### Example 2

```sqf
compatibleMagazines ["arifle_Katiba_GL_F", "this"];
```

### Example 3

```sqf
compatibleMagazines ["arifle_Katiba_GL_F", "EGLM"];
```

### Example 4

```sqf
compatibleMagazines "B_65x39_Caseless_green"; // ["30Rnd_65x39_caseless_green", "30Rnd_65x39_caseless_green_mag_Tracer"]
```

## See also

[compatibleWeapons](../commands/compatibleWeapons.md) · [compatibleItems](../commands/compatibleItems.md) · [BIS_fnc_compatibleMagazines](../functions/BIS_fnc_compatibleMagazines.md) · [canAdd](../commands/canAdd.md)

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