Config

This is how the configuration file for our job panel looks

Config = {
    frameWork = 'esx', -- Framework: esx, qb-core, revoked

    discordLogs = {
        withdrawWebhook = 'ENTER_YOUR_WEBHOOK',
        depositWebhook = 'ENTER_YOUR_WEBHOOK',
        recruitWebhook = 'ENTER_YOUR_WEBHOOK',
        fireWebhook = 'ENTER_YOUR_WEBHOOK',
        updateGradeWebhook = 'ENTER_YOUR_WEBHOOK',
        updatePlayerWebhook = 'ENTER_YOUR_WEBHOOK',
        createRoleWebhook = 'ENTER_YOUR_WEBHOOK',
        removeGradeWebhook = 'ENTER_YOUR_WEBHOOK',
    },

    defaultJob = 'unemployed',
    maxHireDistance = 3.0,
    usePersonalSalary = true, -- Enable personal salary (compatible with ESX/QB-Core).

    jobs = {
        ['cardealer'] = {
            settings = {
                maxSalary = 100, -- Maximum salary for both grades and personal salaries
                editSalary = true, -- Allow bosses to edit grades' salaries (compatible with ESX)
                editGradeLabel = true, -- Allow bosses to edit grades' labels (compatible with ESX)
                createGrades = true, -- Allow bosses to create new grades (compatible with ESX)
                removeGrades = true, -- Allow bosses to remove grades (compatible with ESX)
            },
            access = { 'boss' }, -- Grades that can access the job panel (compatible with ESX)

            useMarket = true, -- Enable market (compatible with ESX/QB-Core)
            products = {
                { label = 'Sig Sauer P226', price = 6000, item = 'sig_sauer', image = 'https://cdn.discordapp.com/attachments/991399244315500706/1099634878041030746/WEAPON_COMBATPISTOL.png' },
                { label = 'Flashlight', price = 500, item = 'flashlight', image = 'https://i.imgur.com/Tyymk1i.png' },
                { label = 'Taser X26', price = 5000, item = 'stungun', image = 'https://i.imgur.com/Ra9AOeP.png' },
                { label = 'MP5', price = 12500, item = 'mp5', image = 'https://cdn.discordapp.com/attachments/991399244315500706/1086788027050889418/WEAPON_SMG.png' },
            }
        },
    },

    locations = {
        ['cardealer'] = vector3(462.5267333984375, -2102.5517578125, 22.17888641357422) -- Jobpanel access location
    }
}

Last updated