Configuration

Server-Side Exports

-- Get society account money
exports["bb_bossmenu"]:GetAccountMoney(job)

-- Add money to society account
exports["bb_bossmenu"]:AddAccountMoney(job, amount)

-- Remove money from society account
exports["bb_bossmenu"]:RemoveAccountMoney(job, amount)

Config

Config = {}

Config.Framework = "auto" -- auto, qb, esx, qbx

Config.Language = 'en' -- Default language (en, tr)

Config.UseDrawText = true
Config.UseCommand = {
    Enabled = true,
    Command = 'bossmenu'
}

Config.BossSettings = {
    ['police'] = {
        minBossGrade = 4, -- This rank and above will have boss privileges
        canHire = true, -- Hiring permission
        canFire = true, -- Firing permission
        canPromote = true, -- Promotion permission
        canWithdraw = true, -- Withdrawal permission
        canDeposit = true, -- Deposit permission
        canManageSettings = true -- Permission to change settings
    },
    ['ambulance'] = {
        minBossGrade = 4,
        canHire = true,
        canFire = true,
        canPromote = true,
        canWithdraw = true,
        canDeposit = true,
        canManageSettings = true
    },
    ['mechanic'] = {
        minBossGrade = 4,
        canHire = true,
        canFire = true,
        canPromote = true,
        canWithdraw = true,
        canDeposit = true,
        canManageSettings = true
    },
}

-- Boss menu locations
Config.BossZones = {
    ['police'] = {
        { coords = vector3(447.98, -974.89, 30.73) }
    },

    ['ambulance'] = {
        { coords = vector3(335.46, -594.61, 43.28) }
    },

    ['mechanic'] = {
        { coords = vector3(-339.53, -156.44, 44.59) }
    },
}

-- Job ranks
Config.Grades = {
    ["police"] = {
        [0] = "Intern",
        [1] = "Officer",
        [2] = "Senior Officer",
        [3] = "Chief",
        [4] = "Assistant Director",
        [5] = "Director",
    },
    ["ambulance"] = {
        [0] = "Intern",
        [1] = "Paramedic",
        [2] = "Doctor",
        [3] = "Surgeon",
        [4] = "Deputy Chief Physician",
        [5] = "Chief Physician",
    },
    ["mechanic"] = {
        [0] = "Intern",
        [1] = "Apprentice",
        [2] = "Mechanic",
        [3] = "Master",
        [4] = "Head Master",
        [5] = "Boss",
    }
}

Config.Notify = function(message, type)
    if GetResourceState('qb-core') == 'started' then
        TriggerEvent("QBCore:Notify", message, type)
    elseif GetResourceState('es_extended') == 'started' then
        TriggerEvent("esx:showNotification", message, type)
    end
end

Config.AddClothingCommand = 'addclothing'

Config.Clothing = function(playerPed)
    if GetResourceState('illenium-appearance') == 'started' then
        local appearance = exports["illenium-appearance"]:getPedAppearance(playerPed)
        TriggerServerEvent("illenium-appearance:server:saveAppearance", appearance)
    elseif GetResourceState('fivem-appearance') == 'started' then
		local appearance = exports['fivem-appearance']:getPedAppearance(playerPed)
		TriggerServerEvent('fivem-appearance:save', appearance)
    elseif GetResourceState('qb-clothing') == 'started' then
        TriggerServerEvent("qb-clothes:loadPlayerSkin")
    elseif GetResourceState('esx_skin') == 'started' then
        TriggerEvent('skinchanger:getSkin', function(skin)
            if skin then
                TriggerServerEvent('esx_skin:save', skin)
            end
        end)
    end
end

Config.ClothingZones = {}

Last updated