---
name: "BIS_fnc_createMenu"
type: function
status: ok
groups: ["Communication Menu"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_createMenu
revid: 376525
updated: 2025-10-23T22:37:32Z
---

# BIS_fnc_createMenu

*Function · Communication Menu · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Create custom commanding menu (with multiple pages if necessary).

## Syntax

```sqf
[namePath, variable, itemDetails, subMenu, codeStr, parameters, showKey] call BIS_fnc_createMenu
```

**Parameters:**

- `namePath`: [String](../topics/String.md) or [Array](../topics/Array.md) - can be one of:
  - [String](../topics/String.md) - menu name
  - [Array](../topics/Array.md) - format [menuName, context]
- `variable`: [String](../topics/String.md) - variable in which will be menu params stored (as `*variable*_0`, `*variable*_1` etc)
- `itemDetails`: [Array](../topics/Array.md) - menu items, format can be one of:
  - [items]
  - [[items], [itemNames], [itemEnable]] if custom parameters are to be set (names, enable values)
- `subMenu`: [String](../topics/String.md) - name of the submenu which will open when item is activated. Name of the selected item is passed to string as `%1`
- `codeStr`: [String](../topics/String.md) - expression which is executed when *item* is activated; item's name is passed to string as `%1`, ID as `%2`, *parameters* (below) as `%3`
- `parameters`: [Anything](../topics/Anything.md) - (Optional) passed to *codeStr* as `%3`
- `showKey`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) [false](../commands/false.md) to hide number shortcuts

**Returns:** [Boolean](../topics/Boolean.md) - always [true](../commands/true.md)

## Examples

### Example 1

```sqf
["Menu", "b", ["first", "second"], "","hint 'ahoj'"] call BIS_fnc_createMenu;
showCommandingMenu "#USER:b_0";
```

### Example 2

```sqf
private _itemDetails = [["firstData", "secondData"], ["First", "Second"]];
["Menu", "b", _itemDetails, "", "hint (str '%1' + str '%2' + str '%3')"] call BIS_fnc_createMenu;
showCommandingMenu "#USER:b_0";
```

## See also

Conversations

<sub>Source: [BI Community Wiki — BIS fnc createMenu](https://community.bistudio.com/wiki/BIS_fnc_createMenu) (revision 376525).</sub>
