setEntityCompletelyDisableCollision
SET_ENTITY_COMPLETELY_DISABLE_COLLISION0x9EBC85ED0FFFE51CThe 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.
setEntityCompletelyDisableCollision(
entity: Entity,
toggle: boolean,
keepPhysics: boolean
): voidsetEntityCompletelyDisableCollision(
entity: Entity,
toggle: boolean,
keepPhysics: boolean
)Usage
JavaScript
setEntityCompletelyDisableCollision(entity, toggle, keepPhysics);Lua
setEntityCompletelyDisableCollision(entity, toggle, keepPhysics)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
toggle | BOOL | boolean | boolean |
keepPhysics | BOOL | boolean | boolean |
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