EOD - Permissions Check

As mentioned previously we have full support for QBCore, ESX and vRP and have tested all three frameworks to ensure they work perfectly.

Don't forget the resource is still standalone, it just works best on these three frameworks.

This part of the config is only relevant if you want to set the command /eod for certain jobs.

Setting up the permissions

To begin, open the config.lua file and navigate to the permissions = { section.

permissions = {
acePermissions = {
        enabled = false,
        permission = "use.eod"
},

-- 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
-- If you want to add further vRP integration, edit sv_eod.lua
vRP = {
    enabled = false,
    checkGroup = {
        enabled = true, -- Enable this to use vRP group check
        groups = {"police", "emergency", "admin"}, -- 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.menu", "player.kick"} -- A user can have any of the following permissions, allowing you to add multiple
    },
},

-- We've added ESX integration. All you need to do is enable it below
-- Then, configure which jobs you want to check for
-- If you want to add further ESX integration, edit sv_eod.lua
ESX = {
    enabled = true,
    checkJob = {
        enabled = true, -- Enable this to use ESX job check
        jobs = {"police"} -- A user can have any of the following jobs, allowing you to add multiple
    }
},

To begin, if you're not using this standalone, start by setting standalone to false. This will disable standalone mode. You should then enable a framework in order to use this.

Setting up frameworks is simple, if you need QBCore, go to that section and the same for vRP and ESX.

Enabling the framework: Navigate to your framework section and set enabled to true.

Last updated