---
name: "lockIdentity"
type: command
status: ok
groups: ["Unit Identity"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lockIdentity
revid: 321185
updated: 2022-05-13T15:19:51Z
---

# lockIdentity

*Command · Unit Identity · Arma 3 v1.56*

## Description

Locks the identity of a person. This will disable default identity.

## Syntax

```sqf
lockIdentity unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md), if it was applied

## Examples

### Example 1

```sqf
_success = lockIdentity player;
```

## See also

[loadIdentity](../commands/loadIdentity.md) · [setIdentity](../commands/setIdentity.md)

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