---
name: "isServer"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isServer
revid: 369339
updated: 2024-09-03T18:43:01Z
---

# isServer

*Command · Multiplayer · Arma 3 v0.50 · introduced in Operation Flashpoint v1.99*

## Description

Returns [true](../commands/true.md) if the machine executing the command is the server in a multiplayer game or is running single player. It will return [true](../commands/true.md) for both dedicated and player-hosted server. See also [Multiplayer Scripting/machines](../topics/Multiplayer_Scripting.md#different-machines-and-how-to-target-them).

## Syntax

```sqf
isServer
```

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

## Examples

### Example 1

```sqf
if (!isServer) exitWith {};
```

## See also

[isDedicated](../commands/isDedicated.md) · [isMultiplayer](../commands/isMultiplayer.md) · [hasInterface](../commands/hasInterface.md) · [local](../commands/local.md)

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