{"name":"hideActions","operator":null,"title":"hideActions","type":"command","url":"https://community.bistudio.com/wiki/hideActions","revid":378963,"updated":"2026-09-06T22:42:03Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.22"}],"since":{"game":"arma3","name":"Arma 3","version":"2.22"},"arma3_since":"2.22","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"> [!IMPORTANT]\n> This command is a work in progress and can evolve until release on stable branch.\n\nHides/unhides user UI actions given by their enum number (see shownAction).\n\n> [!NOTE]\n> This command hides actions for the current player (focusOn), a respawned player will have all actions unhidden so it must be reapplied.","syntaxes":[{"syntax":"hideActions [mode, actions]","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"Number or String or Boolean mode of operation, could be one of:","optional":false,"default":null,"description":"Number or String or Boolean mode of operation, could be one of:\n- 0 or \"UnhideSelected\" or false - only given actions (if previously hidden) would be unhidden\n- 1 or \"HideSelected\" or true - only given actions would be hidden\n- 2 or \"UnhideAllButSelected\" - all hidden actions will be unhidden except for the given actions\n- 3 or \"HideAllButSelected\" - all actions will be hidden except for the given actions","types":["Number","String","Boolean"],"since":null,"text":"mode: Number or String or Boolean mode of operation, could be one of:\n- 0 or \"UnhideSelected\" or false - only given actions (if previously hidden) would be unhidden\n- 1 or \"HideSelected\" or true - only given actions would be hidden\n- 2 or \"UnhideAllButSelected\" - all hidden actions will be unhidden except for the given actions\n- 3 or \"HideAllButSelected\" - all actions will be hidden except for the given actions"},{"name":"actions","type":null,"optional":false,"default":null,"description":"Array of Numbers (see shownAction)","types":["Array","Number","shownAction"],"since":null,"text":"actions: Array of Numbers (see shownAction)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[mode, actions]","types":["Array"]}}],"examples":[{"text":"```sqf\nhideActions [true, [1, 2]]; //hide GetInCommander and GetInDriver actions\n```","code":["hideActions [true, [1, 2]]; //hide GetInCommander and GetInDriver actions"]},{"text":"```sqf\nhideActions [\"UnhideSelected\", [1, 2]]; //unhide GetInCommander and GetInDriver actions\n```","code":["hideActions [\"UnhideSelected\", [1, 2]]; //unhide GetInCommander and GetInDriver actions"]},{"text":"```sqf\nhideActions [1, [91]]; //hide all user added actions\n```","code":["hideActions [1, [91]]; //hide all user added actions"]},{"text":"```sqf\nhideActions [\"HideAllButSelected\", [91]]; //hide all engine actions leaving only user added\n```","code":["hideActions [\"HideAllButSelected\", [91]]; //hide all engine actions leaving only user added"]},{"text":"```sqf\nhideActions [3, []]; //hide all actions\n```","code":["hideActions [3, []]; //hide all actions"]},{"text":"```sqf\nhideActions [\"UnhideAllButSelected\", []]; //unhide all hidden actions\n```","code":["hideActions [\"UnhideAllButSelected\", []]; //unhide all hidden actions"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["hiddenActions","shownAction","visibleMap","shownGPS","shownWatch","shownCompass","shownUAVFeed","shownHUD","addAction","action","isActionMenuVisible","Arma 3: Mission Event Handlers"],"notes":[{"user":"Honger","date":"2026-08-27T20:33:24Z","text":"Hidden actions will also be unhidden once a game save is loaded/game is continued, \"Loaded\" Mission EH is therefore needed to maintain the chosen actions hidden. Actions need to be hidden again if player takes control of a UAV."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 3 version 2.22","Scripting Commands"]}