How do I set custom number of maxplayers for listen server?

I would like to host a game with a maxplayer count of 10, but the numbers from the drop down list only consist of these: 1, 2, 4, 8, 16, 32, 128.

I’ve searched on google and come up with nothing, so I decided to post here.

Is it possible to enter in my own number for the maxplayers cvar before I host?

Thanks.

I’ve looked around the forums and found no rules against bumping threads. So I’m going to do just that.

Any reason you need a specific number?

Yes, because my computer isn’t powerful enough to handle 16 players, and I wouldn’t like to put a password on my server or constantly kick people from it. 10 is just nice.

If you’re hosting a public server it’s recommended you rent a server.

That being said, if you really want to homehost it I really REALLY recommend installing SRCDS so you can control this and the server can continue running if your GMod were to crash. Otherwise there isn’t really a way to do this. You could set the players to 16 and then set sv_visiblemaxplayers 10 so only 10 slots are visible.