The Lab
PLAYER native

SET_PLAYER_TEAM

returns void3 paramsbuild 1207

Sets the team of player.

Signature

C
void SET_PLAYER_TEAM(Player player, int team, BOOL bRestrictToThisScript); // 0xE8DD8536F01DE600 b1207

Parameters

#NameType
1playerPlayer
2teamint
3bRestrictToThisScriptBOOL

Facts

Facts about SET_PLAYER_TEAM
Name
SET_PLAYER_TEAM
Hash
0xE8DD8536F01DE600
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xE8DD8536F01DE600, -- SET_PLAYER_TEAM
  PlayerId(), -- Player player
  0, -- int team
  false -- BOOL bRestrictToThisScript
)
JavaScript
Citizen.invokeNative("0xE8DD8536F01DE600", // SET_PLAYER_TEAM
  PlayerId(), // Player player
  0, // int team
  false // BOOL bRestrictToThisScript
);
C#
Function.Call((Hash)0xE8DD8536F01DE600, // SET_PLAYER_TEAM
  API.PlayerId(), // Player player
  0, // int team
  false // BOOL bRestrictToThisScript
);
All PLAYER natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.