freezeEntityPosition
FREEZE_ENTITY_POSITION0x428CA6DBD1094446The GTA V native FREEZE_ENTITY_POSITION of the ENTITY namespace, as LS:MP client scripts call it: the global function freezeEntityPosition, in JavaScript and in Lua.
freezeEntityPosition(entity: Entity, toggle: boolean): voidfreezeEntityPosition(entity: Entity, toggle: boolean)Usage
JavaScript
freezeEntityPosition(entity, toggle);Lua
freezeEntityPosition(entity, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
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 setEntityCoords.
Reference
- Namespace
- Entity ENTITY
- In the game
void FREEZE_ENTITY_POSITION(Entity entity, BOOL toggle)- Hash
0x428CA6DBD1094446