Gamemode.PlayerRequestTeam
From GMod Wiki
| Event Hook | |
| Hook Name | PlayerRequestTeam |
| Syntax | GM:PlayerRequestTeam( Player player, Integer teamid ) |
| Description | Called when a players uses the "changeteam" console command. |
| Returns | Boolean |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerRequestTeam]Gamemode.PlayerRequestTeam [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Don't return anything to allow joining the team.
- Most of the time you should simply use Gamemode.PlayerCanJoinTeam.
See Also