EntityClient

setEntityCompletelyDisableCollision

SET_ENTITY_COMPLETELY_DISABLE_COLLISION0x9EBC85ED0FFFE51C

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

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

Usage

JavaScript
setEntityCompletelyDisableCollision(entity, toggle, keepPhysics);
Lua
setEntityCompletelyDisableCollision(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_COMPLETELY_DISABLE_COLLISION(Entity entity, BOOL toggle, BOOL keepPhysics)
Hash
0x9EBC85ED0FFFE51C
Formerly
_SET_ENTITY_COLLISION_2

Open in the interactive natives reference