---
name: "hideActions"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "2.22"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hideActions
revid: 378963
updated: 2026-09-06T22:42:03Z
---

# hideActions

*Command · Interaction · Arma 3 v2.22*

## Description

> [!IMPORTANT]
> This command is a work in progress and can evolve until release on stable branch.

Hides/unhides user UI actions given by their enum number (see [shownAction](../commands/shownAction.md)).

> [!NOTE]
> This command hides actions for the current player ([focusOn](../commands/focusOn.md)), a respawned player will have all actions unhidden so it must be reapplied.

## Syntax

```sqf
hideActions [mode, actions]
```

**Parameters:**

- `mode`: [Number](../topics/Number.md) or [String](../topics/String.md) or [Boolean](../topics/Boolean.md) mode of operation, could be one of:
  - 0 or "UnhideSelected" or [false](../commands/false.md) - only given actions (if previously hidden) would be unhidden
  - 1 or "HideSelected" or [true](../commands/true.md) - only given actions would be hidden
  - 2 or "UnhideAllButSelected" - all hidden actions will be unhidden except for the given actions
  - 3 or "HideAllButSelected" - all actions will be hidden except for the given actions
- `actions`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s (see [shownAction](../commands/shownAction.md))

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

## Examples

### Example 1

```sqf
hideActions [true, [1, 2]]; //hide GetInCommander and GetInDriver actions
```

### Example 2

```sqf
hideActions ["UnhideSelected", [1, 2]]; //unhide GetInCommander and GetInDriver actions
```

### Example 3

```sqf
hideActions [1, [91]]; //hide all user added actions
```

### Example 4

```sqf
hideActions ["HideAllButSelected", [91]]; //hide all engine actions leaving only user added
```

### Example 5

```sqf
hideActions [3, []]; //hide all actions
```

### Example 6

```sqf
hideActions ["UnhideAllButSelected", []]; //unhide all hidden actions
```

## See also

[hiddenActions](../commands/hiddenActions.md) · [shownAction](../commands/shownAction.md) · [visibleMap](../commands/visibleMap.md) · [shownGPS](../commands/shownGPS.md) · [shownWatch](../commands/shownWatch.md) · [shownCompass](../commands/shownCompass.md) · [shownUAVFeed](../commands/shownUAVFeed.md) · [shownHUD](../commands/shownHUD.md) · [addAction](../commands/addAction.md) · [action](../commands/action.md) · [isActionMenuVisible](../commands/isActionMenuVisible.md) · [Arma 3: Mission Event Handlers](../topics/Mission_Event_Handlers.md)

## Community notes

**Honger** — 2026-08-27

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.

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