Add jobs

Include new jobs into the dispatch is very easy. Just navigate to configs/sh_config.lua and there you will find the following lua code, which you have to modify including your job. Explanation of each point:

CONFIG.JOBS = {
    ['police'] = {
        Jobname = 'police', -- The name used by the framework to recognize the job.
        GlobalFrequency = 900, -- The frequency used for the global radio, this value should be unique for each job. If you are not using the dispatch radio just leave it.
        Ispolice = true, -- Specify if the job is the police one.
        Ranks = { -- Include every job rank, each rank  has an index that should correspond with the integer used by the framework to recognize each one.
            [0] = 'Recruit',
            [1] = 'Officer',
            [2] = 'Sergeant',
            [3] = 'Lieutenant',
            [4] = 'Captain',
        },
        Blips = { -- Each vehicle type has a blip, and no vehicle is equals to 'none'. Every icon should be an svg.
            ['automobile'] = 'https://cdn.discordapp.com/attachments/966004293041807362/1092758148515934218/police-car.svg',
            ['bike'] = 'https://cdn.discordapp.com/attachments/966004293041807362/1096442349132492841/motorbike.svg',
            ['heli'] = 'https://cdn.discordapp.com/attachments/966004293041807362/1092757648830511155/helicopter.svg',
            ['none'] = 'https://cdn.discordapp.com/attachments/966004293041807362/1087954256911675483/police-hat.svg'
        },
        Perms = { -- From the previous roles specified, you should include which ones of them have perms to interact with the draws or other things.
            ['Captain'] = true
        },
        Units = { -- The units of each job, you should include the unit name and the radio frequency that each unit will use.
            { 'H-50',    801, false },
            { 'Adam-10', 802, false },
            { 'Adam-20', 803, false },
            { 'TAC',     804, true } -- The true/false here specifies if the channel is TAC (TAC means that global radio will not affect the players in this channel, you will not listen or emit to the global radio)
        }
    }
}

Last updated