Configuring the permissions

Permissions

We've added support for ESX, vRP, and QBCore straight out of the box. To enable permissions for any of these, navigate to the CheckJob = { section of the permission and enable your relevant framework. You are also able to specify job names, for example:

-- These permissions can be setup for usage of the resource (such as connecting a helicopter to a basket). Anyone is still able to enter the basket.
Permissions = {
    acePermissions = {
        enabled = false,
        acePerm = "helirescue",
    },
    -- 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 = true, -- Enable this to use ESX job check
            jobs = {"fire", "firefighter"} -- 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 = {"fire", "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 = {"player.kick"} -- 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 = {"fire", "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 = {"god", "admin"}, -- A user can have any of the following permissions, allowing you to add multiple
        },
    },
},

Last updated