---
name: "BIS_fnc_compatibleMagazines"
type: function
status: deprecated
replaced_by: ["compatibleMagazines"]
groups: ["Weapons"]
arma3_since: "1.96"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_compatibleMagazines
revid: 348182
updated: 2023-11-08T11:39:58Z
---

# BIS_fnc_compatibleMagazines

*Function · Weapons · Arma 3 v1.96*

> [!WARNING]
> This function is deprecated. Use [compatibleMagazines](../commands/compatibleMagazines.md) instead.

## Description

> [!CAUTION]
> This information is **obsolete**. Use [compatibleMagazines](../commands/compatibleMagazines.md) instead.

Gets all compatible magazines for selected weapons. Function looks both for magazines listed in `magazines` array and compatible `magazineWells`.

## Syntax

```sqf
[weapon, returnHidden] call BIS_fnc_compatibleMagazines
```

**Parameters:**

- `weapon`: [String](../topics/String.md) - weapon's classname
- `returnHidden`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to also return magazines with scope 1

**Returns:** [Array](../topics/Array.md) - array of magazine classes

## Examples

### Example 1

```sqf
["arifle_mx_f"] call BIS_fnc_compatibleMagazines;
```

## See also

[currentMagazine](../commands/currentMagazine.md) · [currentWeapon](../commands/currentWeapon.md) · [compatibleMagazines](../commands/compatibleMagazines.md)

## Community notes

**PierreMGI** — 2020-09-01

This function returns all magazines in lower case.

Example:

```sqf
currentMagazine player;                                    //  "30Rnd_762x39_AK12_Mag_F"
currentWeapon player call BIS_fnc_compatibleMagazines;    // ["30rnd_762x39_ak12_mag_f", ...]
currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines);                // never works
toLowerANSI currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines);    // works
```

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