FREEZE_ENTITY_POSITION
Freezes or unfreezes an entity preventing its coordinates to change by the player if set to true.
Signature
void FREEZE_ENTITY_POSITION(Entity entity, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to freeze/unfreeze. |
toggle | BOOL | Freeze or unfreeze entity. |
Returns void
Description
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.
This is the server-side RPC native equivalent of the client native FREEZE_ENTITY_POSITION.
Usage
FreezeEntityPosition(entity, toggle)
-- always works, by hash
Citizen.InvokeNative(0x65c16d57, entity, toggle)JavaScript and C#
FreezeEntityPosition(entity, toggle);
// by hash
Citizen.invokeNative('0x65c16d57', entity, toggle);Function.Call((Hash)0x65c16d57, entity, toggle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.