Garry's Mod Wiki


GM:PlayerChangedTeam( Player ply, number oldTeam, number newTeam )


Called when a player has changed team using Player:SetTeam.

Avoid calling Player:SetTeam in this hook as it may cause an infinite loop!


1 Player ply
Player whose team has changed
2 number oldTeam
Index of the team the player was originally in. See team.GetName and the team library.
3 number newTeam
Index of the team the player has changed to

Page Links

Special Pages



Render Time: 41ms

DB GetPage 3
Generate Html 15
SaveChanges (1) 10
Render Body 0
Render Sidebar 10