RedM Natives

GET_PLAYER_GROUP

Returns the group ID the player is member of.

Hash0x9BAB31815159ABCF
Runtime nameGetPlayerGroup
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0D127585F77030AF

Signature

int GET_PLAYER_GROUP(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns int

Description

Returns the group ID the player is member of.

Usage

Lua
local retval = GetPlayerGroup(player)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9BAB31815159ABCF, player, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPlayerGroup(player);

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

Sources

alloc8or RDR3 NativeDB

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