---
name: "BIS_fnc_getNetMode"
type: function
status: ok
groups: ["Multiplayer"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_getNetMode
revid: 327037
updated: 2022-07-12T21:44:46Z
---

# BIS_fnc_getNetMode

*Function · Multiplayer · Arma 3 v1.00*

## Description

Returns the current net mode as a string.

## Syntax

```sqf
call BIS_fnc_getNetMode
```

**Returns:** [String](../topics/String.md) - can be one of:
- "DedicatedServer"
- "Server"
- "HeadlessClient"
- "Client"
- "SinglePlayer"

## Examples

### Example 1

```sqf
private _netMode = call BIS_fnc_getNetMode;
```

<sub>Source: [BI Community Wiki — BIS fnc getNetMode](https://community.bistudio.com/wiki/BIS_fnc_getNetMode) (revision 327037).</sub>
