---
name: "isDedicated"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isDedicated
revid: 337566
updated: 2023-02-10T01:14:00Z
---

# isDedicated

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

## Description

Returns [true](../commands/true.md) if the machine executing the command is a dedicated multiplayer server. Returns [false](../commands/false.md) in single player.

## Syntax

```sqf
isDedicated
```

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

## Examples

### Example 1

```sqf
if (isDedicated) then { diag_log "Dedicated Server on the run !"; };
```

## See also

[isServer](../commands/isServer.md) · [hasInterface](../commands/hasInterface.md)

## Community notes

**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 — isDedicated](https://community.bistudio.com/wiki/isDedicated) (revision 337566).</sub>
