---
name: "nMenuItems"
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/nMenuItems
revid: 353351
updated: 2024-03-15T17:11:54Z
---

# nMenuItems

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

## Description

Returns the total number of user-added menu items belonging to the given menu. 

> [!NOTE]
> Some Old Editor Command

## Syntax

### Syntax 1

```sqf
map nMenuItems menuName
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `menuName`: [String](../topics/String.md) - "file" or "view"

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

### Syntax 2

```sqf
map nMenuItems index
```

**Parameters:**

- `map`: [Control](../topics/Control.md)
- `index`: [Number](../topics/Number.md)

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

## Examples

### Example 1

-

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