Whitelist script

https://forum.cfx.re/t/release-basic-white-blacklist-system/17837

This is the one I use for my test server. Works great. You’ll have to edit the name of the config file though. For some reason the resource file calls:

server_script ‘config.lua’
server_script ‘server.lua’

However, the two files that come with the resource are:

default.config.lua
server.lua

So just edit the config file to “config.lua”.

All I did was enter the “steam:987938742932” and commented out the other lines. So it looked like this.

mode = 'whitelist'

steamIdsList = {
	'steam:123456789764356',
  -- 'steam:STEAMHEXID',
  -- 'STEAMID64',
}

errorMessage = 'You don\'t have access to this server.'

EDIT: As a plus, when a player is joining, it will show the players name obviously in the console but also the SteamID, so if you have someone you want to add to the list, have them try to join, then just pull their ID from the Server Console Window, add it to the whitelist and restart the resource, and they can join easily.