# ENTITY::SET_ENTITY_ONLY_DAMAGED_BY_RELATIONSHIP_GROUP

- **Hash:** `0x6C1F6AA2F0ADD104`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `SetEntityOnlyDamagedByRelationshipGroup`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/SET_ENTITY_ONLY_DAMAGED_BY_RELATIONSHIP_GROUP

## Signature

```c
void SET_ENTITY_ONLY_DAMAGED_BY_RELATIONSHIP_GROUP(Entity entity, BOOL p1, Hash relationshipGroup);
```

## Parameters

- `entity` (`Entity`)
- `p1` (`BOOL`)
- `relationshipGroup` (`Hash`)

## Returns

`void`

## Usage

### Lua

```lua
SetEntityOnlyDamagedByRelationshipGroup(entity, p1, relationshipGroup)

-- always available, by hash
Citizen.InvokeNative(0x6C1F6AA2F0ADD104, entity, p1, relationshipGroup)
```

### JavaScript

```js
SetEntityOnlyDamagedByRelationshipGroup(entity, p1, relationshipGroup);

// by hash
Citizen.invokeNative('0x6C1F6AA2F0ADD104', entity, p1, relationshipGroup);
```

### C#

```csharp
Function.Call((Hash)0x6C1F6AA2F0ADD104, entity, p1, relationshipGroup);
```

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