setEntityCanBeDamagedByRelationshipGroup
SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP0xE22D8FDE858B8119The 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.
setEntityCanBeDamagedByRelationshipGroup(
entity: Entity,
bCanBeDamaged: boolean,
relGroup: number
): voidsetEntityCanBeDamagedByRelationshipGroup(
entity: Entity,
bCanBeDamaged: boolean,
relGroup: integer
)Usage
JavaScript
setEntityCanBeDamagedByRelationshipGroup(entity, bCanBeDamaged, relGroup);Lua
setEntityCanBeDamagedByRelationshipGroup(entity, bCanBeDamaged, relGroup)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
bCanBeDamaged | BOOL | boolean | boolean |
relGroup | int | number | integer |
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