---
name: "addGoggles"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/addGoggles
revid: 379156
updated: 2026-10-19T12:55:09Z
---

# addGoggles

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

## Description

Create a new item and try to link it into goggles (glasses) slot.

> [!NOTE]
> This command does **not** add NVGs, which are [hmd](../commands/hmd.md) slot items (see [linkItem](../commands/linkItem.md) instead). The glasses could be one of the following modes:
>
> ```sqf
> _mode = getNumber(configFile >> "CfgGlasses" >> "G_Diving" >> "mode"); // 1
> /*
> 0 - None
> 1 - Diving
> 2 - Goggles
> 3 - NVG
> 4 - DivingAndOverwater (since 2.08)
> */
> ```

## Syntax

```sqf
unit addGoggles type
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
player addGoggles "G_Tactical_Clear";
```

### Example 2

```sqf
diver addGoggles "G_Diving";
```

## See also

[goggles](../commands/goggles.md) · [removeGoggles](../commands/removeGoggles.md)

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