---
name: "updateMenuItem"
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/updateMenuItem
revid: 363582
updated: 2024-04-07T14:51:54Z
---

# updateMenuItem

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

## Description

Sets the text and command for the menu item. Index is index returned by [addMenuItem](../commands/addMenuItem.md) command. Command is optional.

> [!NOTE]
> Some Old Editor Command

## Syntax

```sqf
map updateMenuItem [menu item index, text, command]
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `menu item index`: [Number](../topics/Number.md) - See [addMenuItem](../commands/addMenuItem.md)
- `text`: [String](../topics/String.md)
- `command`: [String](../topics/String.md)

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

## Examples

### Example 1

-

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