---
name: "serverNamespace"
type: command
status: ok
groups: ["Namespaces", "Variables", "Multiplayer"]
arma3_since: "2.06"
locality: {"argument": null, "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/serverNamespace
revid: 351793
updated: 2024-01-11T04:51:36Z
---

# serverNamespace

*Command · Namespaces, Variables, Multiplayer · Arma 3 v2.06*

Locality: **server execution only**

## Description

Returns server's [namespace](../topics/Namespace.md).
This namespace is only available on the server for the server's uptime duration (same as [uiNamespace](../commands/uiNamespace.md)).

All server event handlers, which are available in server config, use this namespace.

## Syntax

```sqf
serverNamespace
```

**Returns:** [Namespace](../topics/Namespace.md) on the server, [Nothing](../topics/Nothing.md) on clients or in single-player.

## Examples

### Example 1

```sqf
if (isServer) then
{
    hint str allVariables serverNamespace;
}
else
{
    hint "you do not have permission!";
};
```

## See also

[missionNamespace](../commands/missionNamespace.md) · [setVariable](../commands/setVariable.md) · [getVariable](../commands/getVariable.md) · [allVariables](../commands/allVariables.md)

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