DocsBoss Menu

Configuration

Every option in config.lua, including language.

Not released yet. These pages are written from the code of manniche_bossmenu and can change before the release.

General

OptionDefaultWhat it does
Config.Locale'da'Language: 'da' or 'en'. Also sets the money format.
Config.DebugfalsePrints debug messages to the server and client console.

Language

Two languages exist in shared/locales.lua: da and en. Set Config.Locale to switch. With da money shows as 1.234 DKK. With en it shows as $1,234. The UI texts come from web/src/lib/i18n.js, so a change to UI texts needs a rebuild of web/.

Opening the menu

OptionDefaultWhat it does
Config.Command'bossmenu'Command that opens the tablet.
Config.Keybind''Optional key, for example 'F6'. Empty means no key.
Config.OpenDistanceToMarkerfalseIf true, the player must stand at the job's boss zone. Checked on the server.
Config.ZoneDistance5.0Metres from the zone.
Config.BossZonesemptyOne vector3 per job name, for example police = vector3(460.0, -985.0, 30.7). Used only when OpenDistanceToMarker is true. A job without a zone cannot open the menu then.

UI

Config.UI

OptionDefaultWhat it does
defaultLayout'sidebar''sidebar' or 'topbar'.
allowLayoutSwitchtruePlayers may switch layout in Settings.
defaultTheme'midnight'Key of a theme in themes.
notificationstrueDefault for in-NUI notifications.
themesmidnight, emerald, crimson, royalColour themes. Each has label, accent, accent2, bg, surface, text, muted. You can edit or add themes.

Config.UI.transparency

Affects the UI only, not the game behind it.

OptionDefaultWhat it does
allowToggletrueShow the "Transparent UI" toggle in Settings.
defaultOnfalseTransparent UI on by default.
panelOpacity0.85UI opacity when transparent is on (0-1).
dimOnMouseLeavetrueShow the "Dim" toggle in Settings.
dimDefaultOnfalseDim on by default.
dimOpacity0.5UI opacity when the mouse leaves the panel (0-1).

Features

Config.Features switches whole modules on or off. A module that is off is hidden in the UI and refused on the server.

OptionDefaultWhat it does
economytrueEconomy tab: deposit, withdraw, balance.
historytrueTransaction history.
memberstrueEmployee list.
hiretrueHire nearby players. They must accept.
firetrueFire members.
promoteDemotetruePromote and demote.
rankManagementtrueCreate, edit and delete ranks.
specialTrainingtrueSpecial trainings, only for jobs that define them.
settingstrueSettings tab.

Economy

The money is the esx_addonaccount account named <accountPrefix><job>, for example society_police.

OptionDefaultWhat it does
accountPrefix'society_'Prefix of the account name.
minAmount1Smallest amount per transaction.
maxAmount10000000Largest amount per transaction.
cooldown.deposit3Seconds between two deposits per player. Starts only after a successful action.
cooldown.withdraw5Seconds between two withdrawals per player. Starts only after a successful action.
serverLogEventtrueFire the server event manniche_bossmenu:serverLog for every action.

Members and hiring

Config.Members

OptionDefaultWhat it does
hireDistance8.0Metres for the nearby list and the hire offer (1-15).
maxHireDistance15.0Hard cap. Checked again when the target accepts.
showOfflineMemberstrueShow offline members in the Members tab.

Config.Hire

OptionDefaultWhat it does
onlyUnemployedtrueOnly players with the job unemployedJob can be hired.
unemployedJob'unemployed'Also the job fired players get (grade 0).
offerSeconds30How long a job offer stays open.

Ranks

OptionDefaultWhat it does
Config.Ranks.maxSalary1000Highest salary a boss may set. A job can override it with its own maxSalary.
Config.Ranks.maxLabelLength32Longest rank label.
Config.RankSync.refreshOnChangetrueCalls ESX.RefreshJob(job) after rank changes.

Jobs

Config.Jobs lists the jobs that get the menu. Ranks are read from the ESX job_grades table, so you do not list them here. Defaults: police, ambulance, mechanic, taxi, cardealer.

KeyRequiredWhat it does
labelyesName shown in the menu.
typeno'job' or 'gang'. Cosmetic.
minGradenoLowest grade that may open the menu. Default: the boss grade.
maxSalarynoOverrides Config.Ranks.maxSalary for this job.
trainingnoList of { id = '...', label = '...' } special trainings.
police = {
    label = 'Police',
    type = 'job',
    training = {
        { id = 'k9', label = 'K9 unit' },
    },
},

Discord webhook

OptionDefaultWhat it does
Config.Webhook.enabledfalseSend log entries to Discord.
Config.Webhook.url''Discord webhook URL. Keep it out of version control.
Config.Webhook.botName'Boss menu'Name shown on the message.
Config.Webhook.color3447003Embed colour.