---
name: "addMenuItem"
type: command
status: ok
groups: ["Game 2 Editor"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/addMenuItem
revid: 363254
updated: 2024-03-26T10:51:30Z
---

# addMenuItem

*Command · Game 2 Editor · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Creates a new menu item. Menu can be "file" or "view",index is index,as returned from addMenu command. priority is optional and determines,where in the menu the item will reside (higher priority items first).

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map addMenuItem [menu or index,text,command,priority]
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `[menu or index,text,command,priority]`: [Array](../topics/Array.md)

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

## Examples

### Example 1

-

## See also

Game 2 Editor

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