Skip to content

Configuration

All configuration is done in config.lua. Below is a breakdown of each section.

General

lua
MaxJobs = 3,                                -- Maximum jobs a player can hold
AllowAutoJobSavining = true,                -- Auto-save when a player gets assigned a new job
DefaultJobWhenPlayerIsFire = 'unemployed',  -- Fallback job when fired
OpenJobUIKey = '',                          -- Key to open UI (leave blank to disable)
OpenJobUICommand = 'jobs',                  -- Command to open UI

Default Jobs

Jobs that are always present and cannot be removed by the player:

lua
DefaultJobs = {
    {job = 'taxi', grade = 0},
}

Job Center

Jobs available at Job Center locations. Players can browse and add these from the Job Center UI:

lua
DefaultJobsInJobCenter = {
    {job = 'reporter', label = "News",       icon = "fas fa-newspaper"},
    {job = 'bus',      label = "Bus Driver", icon = "fas fa-bus"},
    {job = 'trucker',  label = "Trucker",    icon = "fas fa-truck"},
    {job = 'tow',      label = "Towing",     icon = "fas fa-truck-pickup"},
    {job = 'garbage',  label = "Garbage",    icon = "fas fa-dumpster"},
    {job = 'vineyard', label = "Vineyard",   icon = "fas fa-wine-bottle"},
    {job = 'hotdog',   label = "Hotdog",     icon = "fas fa-utensils"},
    {job = 'taxi',     label = "Taxi",       icon = "fas fa-taxi"},
}

TIP

Icons use Font Awesome 5 class names.

Offduty

Control which jobs can go offduty:

lua
OffdutyForEveryone = true,          -- Allow all jobs to go offduty

JobsThatCanUseOffduty = {           -- Only used if OffdutyForEveryone = false
    'police',
    'ambulance',
    'mechanic',
}

Locations

Job Management

Where players go to switch between their existing jobs:

lua
LocationsToChangeJobs = {
    {coords = vector3(-267.58, -958.55, 31.22), blip = true},
}

Job Center

Where players go to browse and add new jobs:

lua
LocationsJobCenters = {
    {coords = vector3(-261.82, -965.21, 31.22), blip = true},
}

Blips

lua
BlipSprite = 457,              -- Job Management blip
BlipColor = 3,
BlipText = 'Job Managment',

BlipCenterSprite = 498,        -- Job Center blip
BlipCenterColor = 3,
BlipCenterText = 'Job Center',

Markers

lua
MarkerSprite = 27,                   -- Marker type (cylinder)
MarkerColor = {66, 135, 245},        -- RGB color
MarkerSize = 1.5,

Text

Customize all UI and notification messages:

lua
Text = {
    ['cant_offduty'] = 'You cant go offduty!',
    ['open_ui_hologram'] = '[~b~E~w~] Open Job Managment',
    ['open_jobcenter_ui_hologram'] = '[~b~E~w~] Open Job Center',
}