---
name: "handgunItems"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/handgunItems
revid: 321090
updated: 2022-05-13T13:46:43Z
---

# handgunItems

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

Locality: arguments **global**

## Description

Returns array with all items assigned to the [handgunWeapon](../commands/handgunWeapon.md) except magazines. Use [handgunMagazine](../commands/handgunMagazine.md) command for the latter. This command is used for infantry weapons only.

## Syntax

```sqf
handgunItems unit
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) - [silencer, laserpointer/flashlight, optics, bipod]

## Examples

### Example 1

```sqf
handgunItems player;
/*
[
    "muzzle_snds_L",    // silencer
    "",                    // laser
    "",                    // optics
    ""                    // bipod
]
*/
```

## See also

[addHandgunItem](../commands/addHandgunItem.md) · [removeHandgunItem](../commands/removeHandgunItem.md) · [removeAllHandgunItems](../commands/removeAllHandgunItems.md) · [weaponAccessories](../commands/weaponAccessories.md) · [weaponAccessoriesCargo](../commands/weaponAccessoriesCargo.md) · [primaryWeaponItems](../commands/primaryWeaponItems.md) · [secondaryWeaponItems](../commands/secondaryWeaponItems.md) · [weaponsItems](../commands/weaponsItems.md) · [binocularItems](../commands/binocularItems.md) · [weaponsItemsCargo](../commands/weaponsItemsCargo.md)

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