Whitelisting - inferno-collection/Fire-EMS-Pager GitHub Wiki

Understanding whitelisting


Video Tutorial

Watch the Video Tutorial


To disable the whitelist, find the config near the top of client.lua, then change this:

-- Whether or not to enable command whitelist.
-- "ace" to use Ace permissions, "json" to use whitelist.json file, or false to disable.
Config.WhitelistEnabled = "json"

to this:

-- Whether or not to enable command whitelist.
-- "ace" to use Ace permissions, "json" to use whitelist.json file, or false to disable.
Config.WhitelistEnabled = false

whitelist.json

By default, the whitelist.json file contains one entry, as seen here:

[
	{
		"steamhex"		:	"steam:1100001076264E1",
		"pager"			:	true,
		"page"			:	true,
		"firesiren"		:	true,
		"cancelpage"		:	true,
		"pagerwhitelist"	: 	true
	}
]
  • steamhex - A user's steam hex id, you can find it using http://vacbanned.com/ (Steam3 ID (64bit) -> (Hex), prefixed with steam: as seen in the example above)
  • pager - Whether or not this person can use the pager command
  • page - Whether or not this person can use the page command
  • firesiren - Whether or not this person can use the firesiren command
  • cancelpage - Whether or not this person can use the cancelpage command
  • pagerwhitelist - Whether or not this person can use the pagerwhitelist command

PLEASE NOTE: You do not need to list every command, only the commands you want the person to have access to, not listing a command will deny them access to that command.

To add more users, simply copy the entry, making sure to add a , after each entry, except the last entry, as seen here:

[
	{
		"steamhex"		:	"steam:123456789",
		"pager"			:	true,
		"page"			:	true,
		"firesiren"		:	true,
		"cancelpage"		:	true,
		"pagerwhitelist"	: 	true
	},
	{
		"steamhex"		:	"steam:987654321",
		"pager"			:	true,
		"page"			:	true,
		"firesiren"		:	true,
		"cancelpage"		:	true,
		"pagerwhitelist"	: 	true
	},
	{
		"steamhex"		:	"steam:192873465",
		"pager"			:	true,
		"page"			:	true,
		"firesiren"		:	true,
		"cancelpage"		:	true,
		"pagerwhitelist"	: 	true
	}
]

You can also use the /pagerwhitelist in-game, however, please note that if you use this command in-game, the formatting of this file will change: the file will work with no troubles, however, it will be very hard to read. It may look something like this:

[{"steamhex":"steam:123456789","pager":true,"page":true,"firesiren":true,"cancelpage":true,"pagerwhitelist":true},{"steamhex":"steam:987654321","pager":true,"page":true,"firesiren":true,"cancelpage":true,"pagerwhitelist":true},{"steamhex":"steam:192873465","pager":true,"page":true,"firesiren":true,"cancelpage":true,"pagerwhitelist":true}]

To use /pagerwhitelist, simply type /pagerwhitelist, followed by the server ID of the user, or any user's steamhex, then the commands you want them to have access to. For example: /pagerwhitelist5 pager page.


Ace Permissions

To use Ace Permissions as your whitelisting, open your server.cfg file and add the following line above your resources:

exec "resources/[inferno-collection]/inferno-fire-ems-pager/inferno-fire-ems-pager.cfg"

Once you have done this, open the file, and find the section starting with:

#
# Permissions
# Add your player's identifiers in the sections below.
#

There are two sections below this, User, and Supervisor. Players granted the User group only have access to the /pager command. Players granted the Supervisor group have access to all commands, except /pagerwhitelist, as it is not needed when using Ace Permissions.


If you have any troubles, suggestions, feedback, etc, please check the Wiki, create a new issue, and/or contact me on Discord.