EntityClient

setEntityShouldFreezeWaitingOnCollision

SET_ENTITY_SHOULD_FREEZE_WAITING_ON_COLLISION0x3910051CCECDB00C

The GTA V native SET_ENTITY_SHOULD_FREEZE_WAITING_ON_COLLISION of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityShouldFreezeWaitingOnCollision, in JavaScript and in Lua.

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

Usage

JavaScript
setEntityShouldFreezeWaitingOnCollision(entity, toggle);
Lua
setEntityShouldFreezeWaitingOnCollision(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.

True means it can be deleted by the engine when switching lobbies/missions/etc, false means the script is expected to clean it up.

"Allow Freeze If No Collision"

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_SHOULD_FREEZE_WAITING_ON_COLLISION(Entity entity, BOOL toggle)
Hash
0x3910051CCECDB00C
Formerly
_SET_ENTITY_REGISTER _SET_ENTITY_SOMETHING _SET_ENTITY_CLEANUP_BY_ENGINE

Open in the interactive natives reference