---
name: "userInputDisabled"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "1.60"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/userInputDisabled
revid: 373273
updated: 2025-04-13T14:32:18Z
---

# userInputDisabled

*Command · Interaction · Arma 3 v1.60*

## Description

Returns whether or not user input is disabled.

> [!IMPORTANT]
> The disabled input system internally *counts* how many times `disableUserInput true` has been called - see [#Example 2](../commands/userInputDisabled.md#example-2).

## Syntax

```sqf
userInputDisabled
```

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

## Examples

### Example 1

Toggles user input

```sqf
disableUserInput !userInputDisabled;
```

### Example 2

```sqf
disableUserInput true;
disableUserInput true;
disableUserInput true;

diag_log str userInputDisabled; // true

disableUserInput false;
diag_log str userInputDisabled; // true

disableUserInput false;
diag_log str userInputDisabled; // true

disableUserInput false;
diag_log str userInputDisabled; // false - control is regained only here
```

## See also

[disableUserInput](../commands/disableUserInput.md)

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