# CFX::FREEZE_ENTITY_POSITION

- **Hash:** `0x65C16D57`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `FreezeEntityPosition`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/FREEZE_ENTITY_POSITION

## Signature

```c
void FREEZE_ENTITY_POSITION(Entity entity, BOOL toggle);
```

## Parameters

- `entity` (`Entity`) — The entity to freeze/unfreeze.
- `toggle` (`BOOL`) — Freeze or unfreeze entity.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Freezes or unfreezes an entity preventing its coordinates to change by the player if set to `true`. You can still change the entity position using [`SET_ENTITY_COORDS`](#\_0x06843DA7060A026B).

**This is the server-side RPC native equivalent of the client native [FREEZE_ENTITY_POSITION](?\_0x428CA6DBD1094446).**

## Usage

### Lua

```lua
FreezeEntityPosition(entity, toggle)

-- always available, by hash
Citizen.InvokeNative(0x65c16d57, entity, toggle)
```

### JavaScript

```js
FreezeEntityPosition(entity, toggle);

// by hash
Citizen.invokeNative('0x65c16d57', entity, toggle);
```

### C#

```csharp
Function.Call((Hash)0x65c16d57, entity, toggle);
```

*Sources: Cfx.re native reference.*
