EntityClient

setEntityOnlyDamagedByRelationshipGroup

SET_ENTITY_ONLY_DAMAGED_BY_RELATIONSHIP_GROUP0x7022BD828FA0B082

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

SignatureJavaScript
setEntityOnlyDamagedByRelationshipGroup(
  entity: Entity,
  p1: boolean,
  p2: any
): void
SignatureLua
setEntityOnlyDamagedByRelationshipGroup(
  entity: Entity,
  p1: boolean,
  p2: any
)

Usage

JavaScript
setEntityOnlyDamagedByRelationshipGroup(entity, p1, p2);
Lua
setEntityOnlyDamagedByRelationshipGroup(entity, p1, p2)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1BOOLbooleanboolean
p2Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_ONLY_DAMAGED_BY_RELATIONSHIP_GROUP(Entity entity, BOOL p1, Any p2)
Hash
0x7022BD828FA0B082

Open in the interactive natives reference