EntityClient

setEntityNoCollisionEntity

SET_ENTITY_NO_COLLISION_ENTITY0xA53ED5520C07654A

The 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.

SignatureJavaScript
setEntityNoCollisionEntity(
  entity1: Entity,
  entity2: Entity,
  thisFrameOnly: boolean
): void
SignatureLua
setEntityNoCollisionEntity(
  entity1: Entity,
  entity2: Entity,
  thisFrameOnly: boolean
)

Usage

JavaScript
setEntityNoCollisionEntity(entity1, entity2, thisFrameOnly);
Lua
setEntityNoCollisionEntity(entity1, entity2, thisFrameOnly)

Parameters

ParameterTypeJavaScriptLua
entity1Entitynumberinteger
entity2Entitynumberinteger
thisFrameOnlyBOOLbooleanboolean

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

Open in the interactive natives reference