Job integration

Of course, you'll have to add a job for your mechanics. By default, this job is named lscustoms however feel free to change it!

QBCore Installation Guide:

  1. Head to the qb-core/shared/jobs.lua

  2. Add this code snippet between QBShared.Jobs = { (found at the top of the file) and } (found at the bottom of the file):

['lscustoms'] = {
    label = 'LSCustoms Mechanic',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Recruit Mechanic',
            payment = 50
        },
        ['1'] = {
            name = 'Advanced Mechanic',
            payment = 75
        },
        ['2'] = {
            name = 'Manager',
            isboss = true,
            payment = 150
        },
    },
},
  1. The job is now added.

ESX Installation Guide:

  1. Run this SQL query:

INSERT INTO `jobs` (`name`, `label`, `whitelisted`) VALUES
('lscustoms', 'LSCustoms Mechanic', 0);

INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
('lscustoms', 0, 'recruit', 'Recruit Mechanic', 50, '{}', '{}'),
('lscustoms', 1, 'advanced', 'Advanced Mechanic', 75, '{}', '{}'),
('lscustoms', 2, 'boss', 'Manager', 150, '{}', '{}'),
  1. The job is now added.

Last updated