# PED::GET_RELATIONSHIP_BETWEEN_GROUPS

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

## Signature

```c
int GET_RELATIONSHIP_BETWEEN_GROUPS(Hash group1, Hash group2);
```

## Parameters

- `group1` (`Hash`)
- `group2` (`Hash`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetRelationshipBetweenGroups(group1, group2)

-- always available, by hash
local retval = Citizen.InvokeNative(0x9E6B70061662AE5C, group1, group2, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetRelationshipBetweenGroups(group1, group2);

// by hash
const retval = Citizen.invokeNative('0x9E6B70061662AE5C', group1, group2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x9E6B70061662AE5C, group1, group2);
```

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

## Related enums

- [eRelationType](https://natives.borderlinerp.com/enums/eRelationType.md) — 10 values

## See also

- [PED::SET_RELATIONSHIP_BETWEEN_GROUPS](https://natives.borderlinerp.com/natives/PED/SET_RELATIONSHIP_BETWEEN_GROUPS.md)
- [PED::CLEAR_RELATIONSHIP_BETWEEN_GROUPS](https://natives.borderlinerp.com/natives/PED/CLEAR_RELATIONSHIP_BETWEEN_GROUPS.md)

*Sources: alloc8or RDR3 NativeDB.*
