Configuration Guide
Everything you can change lives outside escrow, in these folders of the resource:
| Path | What it holds |
|---|---|
config/general.lua | Language, framework, how the hub opens, LB-Phone app, default job, job limit, cooldown, duty, Team page, staff, currency |
config/jobs.lua | Icon and colour per job, locked and blocked jobs, exclusive groups |
config/server.lua | Logs and switch checks. Only the server reads this file, so the webhook stays private |
locales/*.json | All texts, one file per language |
theme/tokens.css | Colours, sizes, spacing and corners of the hub |
bridge/ | Framework support (see the Developer Documentation) |
Restart the resource (ensure zerio-multijobs) after changing a config file.
Opening the hub
Config.open = {
command = 'jobs', -- /jobs opens the hub, /jobs <job> switches
key = 'F4', -- FiveM only; players can rebind it in the game's key settings
item = false, -- the name of an item that opens the hub when used
}Set any of them to false to turn it off. Other resources can open the hub with exports['zerio-multijobs']:Open() (client), for example from a radial menu.
Jobs and limits
| Setting | Default | What it does |
|---|---|---|
Config.maxJobs | 3 | Jobs a player may hold, not counting the default job. false: no limit |
Config.extraSlots | {} | Extra slots by ACE or framework group, for example ['zeriomultijobs.vip'] = 2 |
Config.defaultJob | nil | The job players have when they have none. nil: the framework’s (unemployed) |
Config.showDefaultJob | true | Show “Off work” in the hub: keep every job but work none |
Config.switchCooldown | 30 | Seconds between switches. 0: no wait |
Config.currency | 'USD' | Currency salaries are shown in (an ISO code: USD, EUR, SEK, …) |
On Qbox, qbx_core has its own limit: set setr qbx:max_jobs_per_player to
at least Config.maxJobs plus your extra slots. The lower of the two applies.
See the Installation Guide.
When a boss menu or another resource hires a player into a job that breaks a rule (too many jobs, or an exclusive group), the new job is kept and the oldest job that breaks the rule is removed. Locked jobs are never removed this way, and the player is told which job went.
Jobs
config/jobs.lua sets how each job looks, and rules for single jobs:
Config.jobs = {
police = { icon = 'shield', color = '#5aa9ff', locked = true },
mechanic = { icon = 'wrench', color = '#ffb35a' },
off_police = { blocked = true },
}| Field | What it does |
|---|---|
icon | A built-in icon, or an image URL (https://... or nui://...) |
color | The accent colour of the job’s icon |
locked | Players cannot quit it themselves. Bosses, staff and boss menus still can |
blocked | Never added to the list, for example an off-duty job some scripts switch players to |
Built-in icons: briefcase, shield, badge, cross, flame, wrench, car, truck, taxi, utensils, coffee, scales, newspaper, home, store, leaf, fish, hammer, music, star, skull. Jobs that are not listed get Config.defaultIcon.
Exclusive groups: a player may hold at most one job from each group.
Config.exclusive = {
{ 'police', 'sheriff', 'ballas', 'vagos', 'families' }, -- law or a gang, not both
}Duty and hours
Config.duty = {
enabled = true, -- the duty toggle, and hours counted while on duty
keepPerJob = false, -- true: each job remembers its duty when switching away
key = false, -- a key that toggles duty without opening the hub (FiveM), e.g. 'F6'
}Hours are counted per job while on duty, saved every five minutes and when a player leaves, and shown for this week (from Monday) and in total. ox_core and VORP have no duty: there, hours count while the job is the active one.
Team page
Bosses open the Team page from their job’s card. It shows:
- The team at a glance: how many are on duty, and the hours worked this week and last week.
- Every member, online or not, with role, status and hours this week. Sort by status, role or hours; a search field appears for larger teams. Members not seen for
inactiveDaysare marked Inactive. - A page per member: hire date, when they were last online and last on duty, and their hours for the last eight weeks.
- Recent activity: hires, departures, role changes and duty, newest first.
Bosses can hire a nearby player (the player gets a job offer to accept or decline), change the role of anyone below their own role, clock out a member who forgot to go off duty, fire, and message everyone on duty in the job.
Config.boss = {
enabled = true,
minGrade = { police = 3 }, -- besides the framework's boss grades: who else sees it, per job
menuEvent = false, -- a client event that opens your boss menu, e.g. 'qb-bossmenu:client:OpenMenu'
hire = {
enabled = true,
range = 10, -- metres from the boss; false: any player online
offerSeconds = 120, -- how long an offer stays open
},
clockOut = true,
message = {
enabled = true,
cooldown = 30, -- seconds between messages per boss
},
inactiveDays = 14, -- false: never mark members inactive
activityDays = 30, -- how long recent activity is kept
}With menuEvent set, the Team page shows an “Open boss menu” button for money and society. The event is triggered on the client with the job name. On Qbox and QBCore, qb-bossmenu:client:OpenMenu opens qbx_management’s and qb-management’s menu.
An offer follows the same rules as any other hire: the job limit, exclusive groups and blocked jobs. A boss only hires into roles below their own.
Staff
Config.admin = {
ace = 'zeriomultijobs.admin',
group = 'admin', -- framework staff group (QBCore/Qbox permission, ESX group, ...)
}Staff open Staff tools from the key icon in the hub: pick an online player, see their jobs, remove one, or give a job and grade. The commands do the same from the chat or the server console:
/givemultijob <player id> <job> [grade]
/removemultijob <player id> <job>Switch checks
In config/server.lua:
Config.blockSwitch = {
dead = true, -- dead or downed (Qbox, QBCore, RSG and VORP, and any dead ped on FiveM)
cuffed = true, -- handcuffed (Qbox, QBCore and RSG)
inVehicle = false, -- sitting in any vehicle
}These stop switching and quitting. For anything else (in jail, in a heist, …), return false and a message from Config.canSwitch:
Config.canSwitch = function(source, from, to)
if Player(source).state.inJail then
return false, 'You cannot switch jobs in jail'
end
return true
endLogs
In config/server.lua:
| Setting | What it does |
|---|---|
Config.webhook | A Discord webhook URL: one message per hire, fire, role change, switch, duty change and staff action. '': off |
Config.oxLogger | true sends the same entries through ox_lib’s logger, to Datadog, Grafana Loki or Fivemanage, whichever your server set with set ox:logger |
LB-Phone
Config.lbPhone = {
enabled = true,
defaultApp = true, -- on every phone; false: players install it from the App Store
price = 0, -- App Store price when defaultApp is false
}The app is added when lb-phone runs. It shows the Jobs and Team pages and follows the phone’s light or dark mode. Staff tools stay in the hub.
Languages
Config.locale picks a file in locales/: en, de, es, fr, pt (Brazil), it, nl, pl, sv, da, no, fi, cs, tr.
To change a text, edit it in your language’s file. To add a language, copy locales/en.json to locales/<code>.json, translate the values (keep the placeholders in curly braces as they are), and set Config.locale to the new code. Any text missing from a file falls back to English.
Theme
theme/tokens.css holds every colour, size, spacing and corner of the hub: its width and height, the glass tint, text colours, the accent colour and more. It is loaded after the built-in styles, so anything set there wins. The names follow Zerio Chat’s, so a chat theme carries over by swapping the --zc- prefix for --zm-.