sv_maxplayers command

Command effect
This command will let you set the maximum number of players allowed in the lobby.

How to enter console commands

To open the command console, press Control Alt ~ / `. Type the command and press the Enter key.

Note that using commands will disable any game achievements. We recommend you save a version of your game before you starting using console commands.