RedM Natives

GET_PED_GROUP_INDEX

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

Hash0xF162E133B4E7A675
Runtime nameGetPedGroupIndex
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF162E133B4E7A675

Signature

int GET_PED_GROUP_INDEX(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Description

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

Usage

Lua
local retval = GetPedGroupIndex(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF162E133B4E7A675, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPedGroupIndex(ped);

// by hash
const retval = Citizen.invokeNative('0xF162E133B4E7A675', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF162E133B4E7A675, ped);

Sources

alloc8or RDR3 NativeDB

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