GET_PLAYER_GROUP
Returns the group ID the player is member of.
Hash
0x9BAB31815159ABCFRuntime name
GetPlayerGroupNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0D127585F77030AFSignature
int GET_PLAYER_GROUP(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns int
Description
Returns the group ID the player is member of.
Usage
local retval = GetPlayerGroup(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9BAB31815159ABCF, player, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPlayerGroup(player);
// by hash
const retval = Citizen.invokeNative('0x9BAB31815159ABCF', player, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9BAB31815159ABCF, player);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.