SetPlayerTeam

From GTA Network Wiki
Jump to: navigation, search

SetPlayerTeam
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Sets the team from a given player.

Syntax

void NAPI.Player.SetPlayerTeam(Client player, int team);

Required Arguments

  • player: parameter input should be in Client type.
  • team: parameter input should be in int type.

Usage example(s)

Sets the player team.

NAPI.Player.SetPlayerTeam(player, 2); // Player belongs now to the team 2.

Changelog

Version Description
1.0 Release.

References