---
name: "magazinesAmmoFull"
type: command
status: ok
groups: ["Unit Inventory", "Vehicle Inventory"]
arma3_since: "0.76"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/magazinesAmmoFull
revid: 343867
updated: 2023-07-27T15:53:37Z
---

# magazinesAmmoFull

*Command · Unit Inventory, Vehicle Inventory · Arma 3 v0.76*

## Description

Returns array of arrays of all unit's or vehicle's magazines with extended information about them.
The magazines returned are for primary gunner. If you need magazines for all turrets, see [magazinesAllTurrets](../commands/magazinesAllTurrets.md).

> [!IMPORTANT]
> This command does not return empty magazines from containers, only from the weapon. Use [magazinesAmmoCargo](../commands/magazinesAmmoCargo.md) instead.

## Syntax

### Syntax 1

```sqf
magazinesAmmoFull entity
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Array](../topics/Array.md)s in format:
- [String](../topics/String.md): magazine class name
- [Number](../topics/Number.md): magazine ammo count
- [Boolean](../topics/Boolean.md): is magazine loaded
- [Number](../topics/Number.md): magazine type:
  - -1 = n/a (default if magazine is not loaded)
  - 0 - grenade
  - 1 - primary weapon mag
  - 2 - handgun mag
  - 4 - secondary weapon mag
  - 4096 - binocular weapon mag
  - 65536 - vehicle mag
- [String](../topics/String.md): magazine location: "Vest", "Uniform", "Backpack", "" or [currentMuzzle](../commands/currentMuzzle.md) if the magazine is loaded
- Arma 3 v2.08 [Number](../topics/Number.md): magazine id, starts with 10000000; use `toFixed 0;` to see this number in a human readable format
- Arma 3 v2.08 [Number](../topics/Number.md): magazine creator

### Syntax 2

*since arma3 2.00*

```sqf
magazinesAmmoFull [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:** same as [Primary Syntax](../commands/magazinesAmmoFull.md#syntax)

## Examples

### Example 1

```sqf
toFixed 0;
magazinesAmmoFull player;
/*
[
    ["30Rnd_65x39_caseless_mag",30,false,-1,"Uniform",10000003,0],
    ["Chemlight_green",1,true,0,"ChemlightGreenMuzzle",10000016,0],
    ["30Rnd_65x39_caseless_mag",30,false,-1,"Vest",10000008,0],
    ["30Rnd_65x39_caseless_mag",30,false,-1,"Vest",10000009,0],
    ["30Rnd_65x39_caseless_mag",30,false,-1,"Vest",10000010,0],
    ["HandGrenade",1,true,0,"HandGrenadeMuzzle",10000018,0],
    ["HandGrenade",1,false,-1,"Vest",10000019,0],
    ["30Rnd_65x39_caseless_mag",30,true,1,"arifle_MX_ACO_pointer_F",10000001,0],
    ["16Rnd_9x21_Mag",16,true,2,"hgun_P07_F",10000011,0]
]
*/
```

### Example 2

```sqf
toFixed 0;
magazinesAmmoFull Mi_48;
/*
[
    ["250Rnd_30mm_HE_shells_Tracer_Green",250,true,65536,"HE",10000043,0],
    ["250Rnd_30mm_APDS_shells_Tracer_Green",250,true,65536,"AP",10000044,0],
    ["Laserbatteries",1,true,65536,"Laserdesignator_mounted",10000045,0],
    ["PylonRack_4Rnd_LG_scalpel",4,false,-1,"",10000049,0],
    ["PylonRack_19Rnd_Rocket_Skyfire",19,false,-1,"",10000051,0],
    ["PylonRack_19Rnd_Rocket_Skyfire",19,false,-1,"",10000052,0],
    ["PylonRack_4Rnd_LG_scalpel",4,false,-1,"",10000053,0]
]
*/
```

## See also

[magazinesAmmo](../commands/magazinesAmmo.md) · [magazinesAmmoCargo](../commands/magazinesAmmoCargo.md) · [magazinesDetail](../commands/magazinesDetail.md) · [magazines](../commands/magazines.md) · [magazinesTurret](../commands/magazinesTurret.md)

## Community notes

**Actium** — 2014-12-20

When used on vehicles this will only return all magazines associated with a single turretPath (which one depends on the actual armament of the vehicle, usually the first armed turretPath or alternatively turretPath [-1]).

If you want to get all turrets' magazines, use [allTurrets](../commands/allTurrets.md) and [magazinesTurret](../commands/magazinesTurret.md).

---

**Pierre MGI** — 2015-02-10

As Actium said, this function seems to extract data from:

```sqf
configFile >> "CfgVehicles" >> _the_vehicle_you_want >> "Turrets" >> "MainTurret">> "magazines"
```

Some vehicles return an empty field {} because magazines are in straight in:

```sqf
configFile >> "CfgVehicles" >> _the_vehicle_you_want >> "magazines" // often dedicated to flares only
```

This is the case of WY-55 Hellcat. This function returns an empty array.

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