SET_PLAYER_TEAM
Sets the player's team.
Hash
0xE8DD8536F01DE600Runtime name
SetPlayerTeamNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0299FA38396A4940Signature
void SET_PLAYER_TEAM(Player player, int team, BOOL bRestrictToThisScript);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
team | int | — |
bRestrictToThisScript | BOOL | — |
Returns void
Description
Sets the player's team.
Usage
SetPlayerTeam(player, team, bRestrictToThisScript)
-- always works, by hash
Citizen.InvokeNative(0xE8DD8536F01DE600, player, team, bRestrictToThisScript)JavaScript and C#
SetPlayerTeam(player, team, bRestrictToThisScript);
// by hash
Citizen.invokeNative('0xE8DD8536F01DE600', player, team, bRestrictToThisScript);Function.Call((Hash)0xE8DD8536F01DE600, player, team, bRestrictToThisScript);See also
GET_PLAYER_TEAMGets the player's team.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.