---
name: "addHandgunItem"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/addHandgunItem
revid: 320941
updated: 2022-05-13T10:04:43Z
---

# addHandgunItem

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

Locality: arguments **local** · effect **global**

## Description

Adds weapon item, including magazine, directly to the [handgunWeapon](../commands/handgunWeapon.md). This is used for infantry weapons.

## Syntax

```sqf
unit addHandgunItem item
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
player addHandgunItem "muzzle_snds_L";
```

## See also

[addWeaponItem](../commands/addWeaponItem.md) · [removeHandgunItem](../commands/removeHandgunItem.md) · [removeAllHandgunItems](../commands/removeAllHandgunItems.md) · [addPrimaryWeaponItem](../commands/addPrimaryWeaponItem.md) · [addSecondaryWeaponItem](../commands/addSecondaryWeaponItem.md) · [addBinocularItem](../commands/addBinocularItem.md) · [weaponsItems](../commands/weaponsItems.md) · [handgunItems](../commands/handgunItems.md) · [primaryWeaponItems](../commands/primaryWeaponItems.md) · [secondaryWeaponItems](../commands/secondaryWeaponItems.md) · [binocularItems](../commands/binocularItems.md)

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