---
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: 379427
updated: 2026-10-31T00:05:05Z
---

# 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)

## Community notes

**Igneous01** — 2011-04-08

**Before Arma 3 and server-only triggers:** You can use [isServer](../commands/isServer.md) inside the condition of a trigger to have the trigger activate only for the server. All other conditions for the trigger will be checked across all machines, but it will only activate the trigger created on the server. For example:

```sqf
this && isServer
```

---

**Killzone_Kid** — 2014-12-21

```sqf
if (isDedicated) then {
    // run on dedicated server only
};

if (isServer) then {
    // run on dedicated server or player host
};

if (hasInterface) then {
    // run on all player clients incl. player host
};

if (!isDedicated) then {
    // run on all player clients incl. player host and headless clients
};

if (!isServer) then {
    // run on all player clients incl. headless clients but not player host
};

if (!hasInterface) then {
    // run on headless clients and dedicated server
};

if (!hasInterface && !isDedicated) then {
    // run on headless clients only
};
```

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