---
name: "gearSlotAmmoCount"
type: command
status: ok
groups: ["Unit Inventory", "GUI Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/gearSlotAmmoCount
revid: 376113
updated: 2025-08-26T21:33:41Z
---

# gearSlotAmmoCount

*Command · Unit Inventory, GUI Control · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.62*

## Description

Returns ammo count of assigned magazine.

## Syntax

```sqf
gearSlotAmmoCount control
```

**Parameters:**

- `control`: [Control](../topics/Control.md) - `CT_ITEMSLOT 103`

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

## Examples

### Example 1

```sqf
private _ammoCount = gearSlotAmmoCount _control;
```

## See also

[gearSlotData](../commands/gearSlotData.md) · [gearIDCAmmoCount](../commands/gearIDCAmmoCount.md)

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