# PED::GET_PED_GROUP_INDEX

- **Hash:** `0xF162E133B4E7A675`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetPedGroupIndex`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/GET_PED_GROUP_INDEX

## Signature

```c
int GET_PED_GROUP_INDEX(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`int`

## Description

Returns the groupId of which the specified ped is a member of.

## Usage

### Lua

```lua
local retval = GetPedGroupIndex(ped)

-- always available, by hash
local retval = Citizen.InvokeNative(0xF162E133B4E7A675, ped, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPedGroupIndex(ped);

// by hash
const retval = Citizen.invokeNative('0xF162E133B4E7A675', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xF162E133B4E7A675, ped);
```

*Sources: alloc8or RDR3 NativeDB.*
