Permissions, Notifications & Items
Setting up permissions, notifications and items is easy!
Permissions
Permissions = {
EnablePermissions = false,
AcePermissions = {
Enabled = false,
-- This enables ace permissions on the grappler command
},
-- We've added ESX integration. All you need to do is enable it below and configure which jobs can use the command
ESX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use ESX job check
Jobs = {"police"} -- A user can have any of the following jobs, allowing you to add multiple
}
},
-- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
vRP = {
Enabled = false,
CheckGroup = {
Enabled = false, -- Enable this to use vRP group check
Groups = {"police"}, -- A user can have any of the following groups, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use vRP permission check
Permissions = {"police"} -- A user can have any of the following permissions, allowing you to add multiple
},
},
-- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
QBCore = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBCore job check
Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
},
CheckPermission = {
Enabled = false, -- Enable this to use QBCore permission check
Permissions = {"police"}, -- A user can have any of the following permissions, allowing you to add multiple
},
},
QBX = {
Enabled = false,
CheckJob = {
Enabled = false, -- Enable this to use QBX job check
Jobs = {"police"}, -- A user can have any of the following jobs, meaning you can add different jobs
}
},
}
This section allows you to enable permissions for AcePermissions, ESX, vRP, QBCore and QBX. These permissions will operate on the /grappler command.
Adding custom permissions
The code for our permissions is located in sv_utils.lua and we encourage you to make edits.
Notifications
Notifications = {
Enabled = true,
Framework = {
QBCore = false,
QBX = false,
ESX = false,
vRP = false,
okok = false, -- https://okok.tebex.io/package/4724993
}
}
This allows you to modify the notifications used for the resource. By default, notifications will be base game notifications shown ontop of the map. However, you may enable a framework/resource such as QBCore, QBX, ESX, vRP or OKOKNotify.
Adding custom notifications
The code for our notifications is located in cl_utils.lua and we encourage you to make edits.
Inventory Items
Inventory = {
itemName = "grappler",
oxInventory = false,
quasarInventory = false,
coreInventory = false,
ESX = false,
vRP = false,
qbCore = false,
}
The next section allows you to configure whether inventory items are enabled/disabled. Setting up inventory items is covered in the next page of this documentation.
Last updated
Was this helpful?