FREEZE_ENTITY_POSITION
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).**
CFX
Signature
lua
FreezeEntityPosition(entity, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Entity | The entity to freeze/unfreeze. | |
| BOOL | Freeze or unfreeze entity. |
Usage
lua
FreezeEntityPosition(entity, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
