Job Information

By default, the script can be used with any job, but you may want to restrict access to certain features (management panel, adding vehicles, finances, etc.).

For ESX:

  1. Configure the job in the jobs table and its grades in the job_grades table (e.g. job cardealer with grade 3).

  2. Example: management features are available to the cardealer boss and any employees who are granted permissions.

For QBCore:

  1. Configure job in qb-core/shared/jobs.lua.

  2. Example job entry:

['cardealer'] = {
    label = 'Car Dealer',
    defaultDuty = true,
    grades = {
        ['1'] = {
            name = 'employee',
            payment = 250
        },
        ['3'] = {
            name = 'boss',
            isboss = true,
            payment = 500
        }
    }
},

In ambr4_vehicleshop config:

Config.Management = {
    JobRequest = {
        Enable = true,
        Job = "cardealer",     -- Job name
        Grade = '3',           -- Grade required for management access
        EmployeeGrade = '1'    -- Minimum grade considered as employee
    }
}

Last updated