Arma 3 Scripting

Command in GUI Control - Menu

menuEnable

Also available as Markdown and JSON, or read the original wiki page.

Description

Enables or disables menu entry on given path.

Syntax

Syntax 1

menuEnable [idc, path, enable]

Parameters:

Returns: Nothing

Syntax 2

control menuEnable [path, enable]

Parameters:

Returns: Nothing

Syntax 3

control menuEnable path > [!CAUTION] > This information is obsolete. This old syntax is kept only for backward compatibility.

Parameters:

Returns: Nothing

Examples

Example 1

findDisplay 313 displayCtrl 120 menuEnable [0]; // old syntax, do not use

Example 2

findDisplay 313 displayCtrl 120 menuEnable [[0, 0, 1], false]; // since Arma 3 v2.06

See also

menuEnabled