EntityClient

setEntityCanBeDamagedByRelationshipGroup

SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP0xE22D8FDE858B8119

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

SignatureJavaScript
setEntityCanBeDamagedByRelationshipGroup(
  entity: Entity,
  bCanBeDamaged: boolean,
  relGroup: number
): void
SignatureLua
setEntityCanBeDamagedByRelationshipGroup(
  entity: Entity,
  bCanBeDamaged: boolean,
  relGroup: integer
)

Usage

JavaScript
setEntityCanBeDamagedByRelationshipGroup(entity, bCanBeDamaged, relGroup);
Lua
setEntityCanBeDamagedByRelationshipGroup(entity, bCanBeDamaged, relGroup)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
bCanBeDamagedBOOLbooleanboolean
relGroupintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP(Entity entity, BOOL bCanBeDamaged, int relGroup)
Hash
0xE22D8FDE858B8119

Open in the interactive natives reference