---
name: "addHeadgear"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/addHeadgear
revid: 318581
updated: 2022-05-13T09:21:08Z
---

# addHeadgear

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

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

## Description

Creates a headgear item and tries to link it to headgear slot. If slot is occupied with another item, the item in the slot will be replaced.

## Syntax

```sqf
unit addHeadgear item
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
player addHeadgear "H_HelmetB";
```

## See also

[headgear](../commands/headgear.md) · [removeHeadgear](../commands/removeHeadgear.md)

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