---
name: "menuAdd"
type: command
status: ok
groups: ["GUI Control - Menu"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/menuAdd
revid: 378324
updated: 2026-04-02T16:28:30Z
---

# menuAdd

*Command · GUI Control - Menu · Arma 3 v1.56*

## Description

Adds new submenu entry into item on given path.

## Syntax

### Syntax 1

```sqf
menuAdd [idc, path, text]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md)
- `text`: [String](../topics/String.md)

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

### Syntax 2

```sqf
control menuAdd [path, text]
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md) - path where the items should be added
- `text`: [String](../topics/String.md) - displayed name for the entry

**Returns:** [Number](../topics/Number.md) - index of the item

## Examples

### Example 1

```sqf
findDisplay 313 displayCtrl 120 menuAdd [[], "Custom Tools"]; // Add new entry at the top level to the menu strip in Eden Editor
```

## See also

[menuDelete](../commands/menuDelete.md)

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