Garry's Mod Wiki

Garry's Mod Wiki

  Player:SetTeam( number Team )


Sets the player to the chosen team.


1 number Team
The team that the player is being set to.


Sets the players team to the first argument when writing "set_team" into the console and respawns the player afterwards, ex. "set_team 1".

concommand.Add( "set_team", function( ply, cmd, args ) local Team = args[1] or 1 ply:SetTeam( Team ) ply:Spawn() end )
Output: Sets the player to team 1 and respawns them.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...