Garry's Mod

Garry's Mod

40 ratings
Server Whitelist
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Build, Fun
File Size
Posted
Updated
2.335 KB
22 Dec, 2015 @ 10:09am
22 Dec, 2015 @ 10:48pm
3 Change Notes ( view )

Subscribe to download
Server Whitelist

Description
This is a server whitelist made to allow you to easily add and remove players from it.

Features
  • You can easily add by community id with the click of a button
  • You can remove an id by either typing it into the text box or double clicking on it in the list
  • You can remove more than 1 id by selecting multiple ids and clicking Remove Selected
  • You can remove the entire whitelist by clicking Remove All
  • You can check if a id is whitelisted by clicking Check ID

Note: if you use the Remove all button a box will appear and ask if you're sure.

Commands
Console
whitelist - Opens the whitelist gui
whitelist_save - Saves the whitelist, used to save the changes you made while in the gui
whitelist_add <SteamID> - Adds the SteamID to the whitelist
whitelist_remove <SteamID> - Removes the SteamID from the whitelist
whitelist_kickreason <Text> - Sets the disconnect reason for players who are not on the whitelist
Chat
!whitelist - Opens the whitelist gui

Note: if you use the console commands to add or remove from the whitelist and don't run the save command and the server crashes your changes will not be saved, same goes for the kick reason command. If done through the gui it'll auto save once you close it.

Note: the whitelist doesn't kick unless it has at least 1 id in it, so make sure you add your id first then others. If remove your id you can easily add it back through the server console using the commands. I did this because I didn't have an efficient way to detect for superadmin on the CheckPassword hook.

Note: only players in the superadmin usergroup are allowed to use the commands.

You can get a players SteamID here[steamrep.com].

I made this because the only other workshop whitelist I saw had a "bad" (thanks for the censor steam) backend and so I made my own. Also this was my first time using derma to let me know what you think, thanks :).

Update Plans
Rewriting the rank system for custom admin mod support
Redoing gui a bit

Only putting this here because I'm bored and wanted something to do, though I'm not going to have a computer for a few weeks so this probably won't get done anytime soon.
29 Comments
Spesago 22 Dec, 2019 @ 4:38am 
Can this whitelist based on steam group?
okent.Earl 22 Aug, 2019 @ 3:03am 
It's not working. Why?
Whitelisted players can't get on the server
Kuya 5 Apr, 2019 @ 8:57am 
love your whitelist systemm +rep
венякрамблкуки 11 Dec, 2018 @ 10:21am 
ГООООООВНООООООО
Restion 8 Sep, 2018 @ 5:54am 
how do I disabled people from joining only if they are on the whitelist
Nek0 31 Jul, 2018 @ 3:35pm 
I would love to use it but everytime i try to add me through the console via rcon it says it couldnt connect to the server (other commands work fine) am i doing something wrong?
Hatsune Miku 💕 [Loved] 30 Apr, 2017 @ 11:17pm 
Hey, I was wondering how I can add jobs to the whitelist?
www.Raphi.org 10 Feb, 2017 @ 1:41pm 
Somehow I can´t even add myself to the whitelist

Soap 12 Jan, 2017 @ 9:31am 
it does not work on my dedicated server, cant save it
Wimpy 7 Jan, 2017 @ 1:44pm 
Let me clear something up for a few people thinking that this is a JOB whitelist thing; it's not. It is for making it so that only certain people can join your server that have been whitelisted. So, if your server is in development and you only want certain people to join, this is what you can use as an alternative to a password.