EntityClient

setEntityCollision

SET_ENTITY_COLLISION0x1A9205C1B9EE827F

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

SignatureJavaScript
setEntityCollision(
  entity: Entity,
  toggle: boolean,
  keepPhysics: boolean
): void
SignatureLua
setEntityCollision(entity: Entity, toggle: boolean, keepPhysics: boolean)

Usage

JavaScript
setEntityCollision(entity, toggle, keepPhysics);
Lua
setEntityCollision(entity, toggle, keepPhysics)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean
keepPhysicsBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_COLLISION(Entity entity, BOOL toggle, BOOL keepPhysics)
Hash
0x1A9205C1B9EE827F

Open in the interactive natives reference