---
name: "netId"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/netId
revid: 364973
updated: 2024-07-04T17:25:50Z
---

# netId

*Command · Multiplayer · Arma 3 v0.50*

## Description

Get the unique ID of an object or a group.

## Syntax

```sqf
netId objOrGroup
```

**Parameters:**

- `objOrGroup`: [Object](../topics/Object.md) or [Group](../topics/Group.md)

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

## Examples

### Example 1

```sqf
_playerNetId = netId player;
```

## Multiplayer

- In singleplayer: Arma 3 v2.18 returns a net ID (different from [BIS_fnc_netId](../functions/BIS_fnc_netId.md)'s output), before that it returned an empty string in single player (see [BIS_fnc_netId](../functions/BIS_fnc_netId.md) and [BIS_fnc_objectVar](../functions/BIS_fnc_objectVar.md))
- In multiplayer: works as described

## See also

[objectFromNetId](../commands/objectFromNetId.md) · [groupFromNetId](../commands/groupFromNetId.md) · [BIS_fnc_objectFromNetId](../functions/BIS_fnc_objectFromNetId.md) · [BIS_fnc_netId](../functions/BIS_fnc_netId.md) · [BIS_fnc_groupFromNetId](../functions/BIS_fnc_groupFromNetId.md) · [BIS_fnc_objectVar](../functions/BIS_fnc_objectVar.md)

## Community notes

**Demellion** — 2018-10-19

Even if the returned value is in format of **owner:uniqueid**, it doesn't follow the current ownership of an object ([owner](../commands/owner.md) for example).

This command keeps the **original owner** of a created object.

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