RedM Natives

SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP

Hash0x0EF1AFB18649E015
Runtime nameSetEntityCanBeDamagedByRelationshipGroup
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE22D8FDE858B8119

Signature

void SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP(Entity entity, BOOL bCanBeDamaged, Hash relGroup);

Parameters

NameTypeDescription
entityEntity—
bCanBeDamagedBOOL—
relGroupHash—

Returns void

Usage

Lua
SetEntityCanBeDamagedByRelationshipGroup(entity, bCanBeDamaged, relGroup)

-- always works, by hash
Citizen.InvokeNative(0x0EF1AFB18649E015, entity, bCanBeDamaged, relGroup)
JavaScript and C#
JavaScript
SetEntityCanBeDamagedByRelationshipGroup(entity, bCanBeDamaged, relGroup);

// by hash
Citizen.invokeNative('0x0EF1AFB18649E015', entity, bCanBeDamaged, relGroup);
C#
Function.Call((Hash)0x0EF1AFB18649E015, entity, bCanBeDamaged, relGroup);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.