setEntityCollision
SET_ENTITY_COLLISION0x1A9205C1B9EE827FThe 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.
setEntityCollision(
entity: Entity,
toggle: boolean,
keepPhysics: boolean
): voidsetEntityCollision(entity: Entity, toggle: boolean, keepPhysics: boolean)Usage
JavaScript
setEntityCollision(entity, toggle, keepPhysics);Lua
setEntityCollision(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_COLLISION(Entity entity, BOOL toggle, BOOL keepPhysics)- Hash
0x1A9205C1B9EE827F