Dog Access Configuration

Shared.AcePermission

RQ-Dogs allows you to restrict access to dog-related commands to ace permissions. This configuration option is a permission, not a group. Leaving this as empty quotes will disable the ace permission check. To setup access via a permission, first pick a name for your permission and place it in the config:

Shared.AcePermission = "changeMe" -- The ace permission required to use dog-related commands. Leave empty to disable.

Then, in your server.cfg file, you can grant this permission to an identifier or group:

# Granting the permission to a group
add_ace group.admin yourPermission allow

# Granting the permission to an identifier
add_ace identifier.discord:707041801789243393 yourPermission allow

To disable this check, leave the quotes empty:

Shared.AcePermission = "" -- The ace permission required to use dog-related commands. Leave empty to disable.

Shared.RadioChannels

RQ-Dogs allows you to restrict access to dog-related commands to players that are actively on a radio channel. This table is populated with 1.0 by default in the config, so you will have to make the table empty to disable this check.

-- Restricting access to one radio channel
Shared.RadioChannels = { 1.0 } -- The radio channels a player must be connected to to use dog-related commands. Make the table empty to disable.

-- Restricting access to one of many radio channels
Shared.RadioChannels = { 1.0, 1.1, 2.0, 2.1 } -- The radio channels a player must be connected to to use dog-related commands. Make the table empty to disable.

-- Disabling the radio channel check (empty table)
Shared.RadioChannels = { } -- The radio channels a player must be connected to to use dog-related commands. Make the table empty to disable.

Shared.AuthorizedJobs

RQ-Dogs allows you to restrict access to dog-related commands to players that have a certain job, at a certain grade. This calls the hasJob function in the unlocked server/sv_open.lua file. Each grade that has access to the commands within a job must be explicitly declared.

Shared.CustomAccess

RQ-Dogs allows you to restrict access to dog-related commands based on the return of a custom function. If this is enabled, the customCheck(playerId) in the server/sv_open.lua file must return true in order to access dog-related commands.

Last updated