GET_PLAYER_TEAM
Gets the player's team.
Hash
0xB464EB6A40C7975BRuntime name
GetPlayerTeamNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x37039302F4E0A008Signature
int GET_PLAYER_TEAM(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns int
Description
Gets the player's team.
Returns -1 in singleplayer.
Usage
local retval = GetPlayerTeam(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0xB464EB6A40C7975B, player, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPlayerTeam(player);
// by hash
const retval = Citizen.invokeNative('0xB464EB6A40C7975B', player, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xB464EB6A40C7975B, player);See also
SET_PLAYER_TEAMSets the player's team.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.