setEntityNoCollisionEntity
SET_ENTITY_NO_COLLISION_ENTITY0xA53ED5520C07654AThe GTA V native SET_ENTITY_NO_COLLISION_ENTITY of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityNoCollisionEntity, in JavaScript and in Lua.
setEntityNoCollisionEntity(
entity1: Entity,
entity2: Entity,
thisFrameOnly: boolean
): voidsetEntityNoCollisionEntity(
entity1: Entity,
entity2: Entity,
thisFrameOnly: boolean
)Usage
JavaScript
setEntityNoCollisionEntity(entity1, entity2, thisFrameOnly);Lua
setEntityNoCollisionEntity(entity1, entity2, thisFrameOnly)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity1 | Entity | number | integer |
entity2 | Entity | number | integer |
thisFrameOnly | BOOL | boolean | boolean |
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.
Calling this function disables collision between two entities.
The importance of the order for entity1 and entity2 is unclear.
The third parameter, thisFrame, decides whether the collision is to be disabled until it is turned back on, or if it's just this frame.
Reference
- Namespace
- Entity ENTITY
- In the game
void SET_ENTITY_NO_COLLISION_ENTITY(Entity entity1, Entity entity2, BOOL thisFrameOnly)- Hash
0xA53ED5520C07654A