---
name: "hasInterface"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hasInterface
revid: 379352
updated: 2026-10-30T23:55:06Z
---

# hasInterface

*Command · Multiplayer · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.63*

## Description

Returns true if the computer has an interface (a real player). False for a dedicated server or for a headless client.

## Syntax

```sqf
hasInterface
```

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

## Examples

### Example 1

```sqf
_isHC = !(hasInterface || isDedicated);
```

### Example 2

```sqf
_isHC = !hasInterface && !isDedicated;
```

## See also

[isDedicated](../commands/isDedicated.md) · [isServer](../commands/isServer.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 — hasInterface](https://community.bistudio.com/wiki/hasInterface) (revision 379352).</sub>
