# PLAYER::GET_PLAYER_TEAM

- **Hash:** `0xB464EB6A40C7975B`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `GetPlayerTeam`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/GET_PLAYER_TEAM

## Signature

```c
int GET_PLAYER_TEAM(Player player);
```

## Parameters

- `player` (`Player`)

## Returns

`int`

## Description

Gets the player's team.
Returns -1 in singleplayer.

## Usage

### Lua

```lua
local retval = GetPlayerTeam(player)

-- always available, by hash
local retval = Citizen.InvokeNative(0xB464EB6A40C7975B, player, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPlayerTeam(player);

// by hash
const retval = Citizen.invokeNative('0xB464EB6A40C7975B', player, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xB464EB6A40C7975B, player);
```

## See also

- [PLAYER::SET_PLAYER_TEAM](https://natives.borderlinerp.com/natives/PLAYER/SET_PLAYER_TEAM.md) — Sets the player's team.

*Sources: alloc8or RDR3 NativeDB.*
