# PED::GET_RELATIONSHIP_BETWEEN_PEDS

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

## Signature

```c
int GET_RELATIONSHIP_BETWEEN_PEDS(Ped ped1, Ped ped2);
```

## Parameters

- `ped1` (`Ped`)
- `ped2` (`Ped`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetRelationshipBetweenPeds(ped1, ped2)

-- always available, by hash
local retval = Citizen.InvokeNative(0xEBA5AD3A0EAF7121, ped1, ped2, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetRelationshipBetweenPeds(ped1, ped2);

// by hash
const retval = Citizen.invokeNative('0xEBA5AD3A0EAF7121', ped1, ped2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xEBA5AD3A0EAF7121, ped1, ped2);
```

## Related enums

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

*Sources: alloc8or RDR3 NativeDB.*
