EntityClient

freezeEntityPosition

FREEZE_ENTITY_POSITION0x428CA6DBD1094446

The 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.

SignatureJavaScript
freezeEntityPosition(entity: Entity, toggle: boolean): void
SignatureLua
freezeEntityPosition(entity: Entity, toggle: boolean)

Usage

JavaScript
freezeEntityPosition(entity, toggle);
Lua
freezeEntityPosition(entity, toggle)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference