---
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 is basically being **logged-in** as [admin](../commands/admin.md) in terms of permissions.

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

To check if a server command 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

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