---
name: "localNamespace"
type: command
status: ok
groups: ["Namespaces", "Variables", "Multiplayer"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/localNamespace
revid: 309258
updated: 2022-05-04T11:01:29Z
---

# localNamespace

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

## Description

Returns local [Namespace](../topics/Namespace.md) attached to the mission.
Has the same lifetime as [missionNamespace](../commands/missionNamespace.md) but variables **cannot be broadcasted** out of or into this namespace in multiplayer and will not be serialized when game is saved. UI variables can be safely stored in this namespace.
Use [allVariables](../commands/allVariables.md) command to save the variables elsewhere if required.

## Syntax

```sqf
localNamespace
```

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

## Examples

### Example 1

```sqf
localNamespace setVariable ["abc", 123];
```

### Example 2

```sqf
with localNamespace do { hint str abc };
```

## See also

[missionNamespace](../commands/missionNamespace.md) · [uiNamespace](../commands/uiNamespace.md) · [parsingNamespace](../commands/parsingNamespace.md) · [profileNamespace](../commands/profileNamespace.md) · [currentNamespace](../commands/currentNamespace.md) · [allVariables](../commands/allVariables.md)

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