---
name: "serverCommandAvailable"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/serverCommandAvailable
revid: 370060
updated: 2024-10-29T14:40:43Z
---

# serverCommandAvailable

*Command · Multiplayer · Arma 3 v0.50 · introduced in Arma 2 v1.05*

## Description

Returns [true](../commands/true.md) if given [serverCommand](../commands/serverCommand.md) is available on current machine, [false](../commands/false.md) if not.

> [!NOTE]
> Execution via [RCon](../topics/BattlEye.md#rcon) is basically being **logged-in** as [admin](../commands/admin.md) in terms of permissions.

| Arma 3 [Multiplayer Server Commands](../topics/Multiplayer_Server_Commands.md) | Available to |  |  |  |
|---|---|---|---|---|
| Arma 3 [Multiplayer Server Commands](../topics/Multiplayer_Server_Commands.md) | Client | Voted [Admin](../commands/admin.md) | Logged [Admin](../commands/admin.md) | [Server Host](../commands/isServer.md) |
| `#login`, `#userlist`, `#beclient`, `#vote` | ✓ | ✓ | ✓ | ✓ |
| `#kick`, `#debug` | ✗ | ✓ | ✓ | ✓ |
| `#lock`, `#unlock`, `#maxping`, `#maxdesync`, `#maxpacketloss` | ✗ | ✗ | ✓ | ✓ |
| `#logout`, `#restart`, `#mission`, `#missions`, `#reassign`, `#monitor`, `#init` | ✗ | ✓ | ✓ | ✗ |
| `#shutdown`, `#restartserver`, `#restartserveraftermission`, `#shutdownaftermission`, `#dctimeout`, `#exec`, `#monitords`, `#beserver` | ✗ | ✗ | ✓ | ✗ |
| `#logentities`, `#exportjipqueue` | ✗ | ✗ | ✓ | ✓ |
| Profiling type builds only: `#captureframe`, `#captureslowframe` | ✗ | ✗ | ✓ | ✓ |

To check if a [server command](../topics/Multiplayer_Server_Commands.md) can be executed in the current environment, use [serverCommandExecutable](../commands/serverCommandExecutable.md).

> [!NOTE]
> The table above does not apply to the command's password variant on a dedicated server as everything is available to it.

## Syntax

```sqf
serverCommandAvailable command
```

**Parameters:**

- `command`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
_can = serverCommandAvailable "#kick";
```

### Example 2

```sqf
if (serverCommandAvailable "#logout") then
{
    hint "You are a some sort of admin";
};
```

## See also

[serverCommand](../commands/serverCommand.md) · [serverCommandExecutable](../commands/serverCommandExecutable.md) · [admin](../commands/admin.md) · [isServer](../commands/isServer.md) · [Multiplayer Server Commands](../topics/Multiplayer_Server_Commands.md)

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