Config File

This is the default config file

QBCore = exports['qb-core']:GetCoreObject() -- DO NOT REMOVE, MAY EDIT IF YOU KNOW WHAT YOUR DOING

Config = {}

Config.Discord = { 
    Webhook = "CHANGE_WEBHOOK", 
    Profile = {image = "https://dunb17ur4ymx4.cloudfront.net/webstore/logos/6b819a03fdcbd3af0117c61770071be9da8e0722.png", name = "NS Job Menu"}, 
    Color = {switch = "E812BD45", update = "E889BD12", new = "E81248BD", adminremove = "E8BD1212"} -- COLOR OF EMBEDS; SWITCH, UPDATE, GET NEW JOB
}

Config.Icons = { -- ICONS PRESENTED NEXT TO EACH JOB TYPES (optional)
    ['police'] = 'bi bi-shield-shaded',
    ['ambulance'] = 'fas fa-ambulance',
    ['tow'] = 'bi bi-truck-flatbed',
    ['taxi'] = 'fas fa-taxi',
    ['lawyer'] = 'bi bi-briefcase',
    ['judge'] = 'fas fa-gavel',
    ['realestate'] = 'bi bi-house',
    ['cardealer'] = 'fas fa-car',
    ['mechanic'] = 'bi bi-tools',
    ['reporter'] = 'bi bi-newspaper',
    ['trucker'] = 'fas fa-truck-moving',
    ['garbage'] = 'fas fa-recycle',
}

Config.DefaultIcon = "fas fa-briefcase" -- DEFAULT ICON WITHIN HEADER, NEXT TO TITLE

Config.BlackListedJobs = { -- JOBS THAT DO NOT GET ADDED TO MENU (leave blank if not needed)
    'taxi',
    'tow'
}

Config.AntiClockingSystem = { -- JOBS WHICH ARE NOT PERMITTED TO CLOCKIN/ CLOCKOUT USING MENU (leave blank if not needed)
    'police',
    'ambulance'
}

Config.Command = "jobmenu"
Config.Keybind = "J" -- KEYBIND TO OPEN MENU

function Notify(text, texttype, source) -- REPLACE WITH YOUR OWN NOTIFICATION SYSTEM (if needed)
    --[[ BASIC QBCORE USES SUCCESS AND ERROR, WHICH IS ALSO USED HERE. IF YOUR TEXT TYPES DIFFER, SIMPLY REPLACE SUCCESS AND ERROR WITH YOUR OWN TYPE
    if texttype == 'success' then
        texttype = -- add your success type here 
    else
        texttype = -- add your error type here 
    end]]
    if source == nil then
        QBCore.Functions.Notify(text, texttype, 6000) -- Client ide
    else
        QBCore.Functions.Notify(source, text, texttype, 6000) -- Server Side
    end
end

Config.AdminRemoveJob = { -- REMOVE JOB FROM PLAYERS USING COMMAND
    Enabled = true,
    Command = 'removejob', -- COMMAND TO REMOVE JOB
    CommandHelp = 'Remove a job from the players multijob menu',
    Permission = 'admin' -- USE EITHER (mod, admin, god)
}

NotificationText = { -- NOTIFICATION TEXTS, TRANSLATE IF YOU WANT
    ['AntiClockingJob'] = 'Please use the duty system at your workplace',
    ['JobChange'] = 'Your job is now', -- .. Job Name 
    ['PlayerNotOnline'] = "Player Not Online",
    ['JobRemoved'] = 'Job Removed',
    ['onduty'] = 'you are on duty',
    ['ErrorOccured'] = "An Error Occured",
}

Last updated