RedM Natives

SET_PLAYER_TEAM

Sets the player's team.

Hash0xE8DD8536F01DE600
Runtime nameSetPlayerTeam
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0299FA38396A4940

Signature

void SET_PLAYER_TEAM(Player player, int team, BOOL bRestrictToThisScript);

Parameters

NameTypeDescription
playerPlayer—
teamint—
bRestrictToThisScriptBOOL—

Returns void

Description

Sets the player's team.

Usage

Lua
SetPlayerTeam(player, team, bRestrictToThisScript)

-- always works, by hash
Citizen.InvokeNative(0xE8DD8536F01DE600, player, team, bRestrictToThisScript)
JavaScript and C#
JavaScript
SetPlayerTeam(player, team, bRestrictToThisScript);

// by hash
Citizen.invokeNative('0xE8DD8536F01DE600', player, team, bRestrictToThisScript);
C#
Function.Call((Hash)0xE8DD8536F01DE600, player, team, bRestrictToThisScript);

See also

Sources

alloc8or RDR3 NativeDB

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