GET_PED_GROUP_INDEX
Returns the groupId of which the specified ped is a member of.
Hash
0xF162E133B4E7A675Runtime name
GetPedGroupIndexNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF162E133B4E7A675Signature
int GET_PED_GROUP_INDEX(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns int
Description
Returns the groupId of which the specified ped is a member of.
Usage
local retval = GetPedGroupIndex(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xF162E133B4E7A675, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedGroupIndex(ped);
// by hash
const retval = Citizen.invokeNative('0xF162E133B4E7A675', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xF162E133B4E7A675, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.