JCKSDocs
JCKS JobsV2Funkce

Job creator

The /jobadmin studio, job templates, location types, grade permissions and job groups.

Studio pages

Page What it holds
Dashboard Players online, employed players, people on duty, pending applications, 7 day duty chart, most active jobs, setup check
Health Things to fix, and running resources that do the same job as a module that is on, with a button that switches the module off
Jobs Every job. The editor has General, Grades, Locations, Employees, Finance, Job Center, Blips and Activity tabs, plus Sales (price limits, see Sales and prices) and Taxi (see Taxi)
Employees Search every character online and offline, assign jobs, change grades, fire
Job Center Job Center locations for every player and the jobs listed there, open or by application
Activity Log Every logged action with categories, filters and search
Groups Job groups, see below
Gigs Gig editor, templates and contracts, see Gigs
Minigames Built in types and your own minigames, see Minigames
Doors Door locks, see Doors
Fires Fire zones, test fires, burning fires
Penal code Charges used by MDT reports and jail
Server settings 321 common options with labels, applied live
Configuration Every option of the settings/*.lua files, including server only values, opened from Server settings
Live code Editable functions changed in game, server owner only

Jobs can be exported, imported and duplicated as JSON. A right click on a job card opens copy name, duplicate, export and delete.

Templates

New job lists every template by category. A template creates the grades with permissions, invoice presets and the locations as drafts with a hint where each belongs. Templates with a dispatch role add the new job to that role (police, EMS or fire). Templates live in shared/templates.lua, which stays readable in the escrow build.

Category Templates
Law enforcement Police Department, Sheriff's Department, San Andreas Highway Patrol, FIB, Department of Corrections, Park Rangers
Emergency EMS, Fire Department
Business Mechanic Workshop, Custom Workshop, Towing Service, Car Dealership, Ammu-Nation, Restaurant, Burger Shot, Coffee Shop, Pizzeria, Bar and Nightclub, Taxi Company, Real Estate Agency, Law Firm, Tattoo Studio, Barber Shop, Weazel News, Bank, LSIA Airline, Driving School, Security Company
Trades and labour Farm, Lumber Company, Mining Company, Salvage Divers, Construction Company, Water and Power, IT Company, Telecom Operator, Cleaning Company, Waste Management, Oil Company, Courier Service, Gardening Company, Fishing Company, Logistics Company, Port of Los Santos, Hunting Lodge
Organisations Street Gang, Crime Family, Cartel
Government Department of Justice

The trades templates are the faction jobs of the gig templates, see Gigs.

Location types

Each type can be turned off in Config.LocationTypes (settings/config.lua). A disabled type disappears from the studio and cannot be used in game.

Key Type What it does
duty Duty clock Go on and off duty
stash Stash One inventory shared by everyone with access
locker Personal locker A private inventory per employee
boss Boss menu Company management
outfits Uniforms Job clothing per grade and gender, capture the current outfit in one click
wardrobe Wardrobe Civilian outfit menu of your clothing resource
shop Shop or armory Items paid by the player or the company, price and minimum grade per item
garage Garage Job vehicles with livery, colour, extras, max tuning and plate prefix
craft Crafting Recipes with amount, duration and an optional minigame
collect Harvest Items with a progress bar, cooldown, required tool and animation
sell Selling Price per item, payout account, company share
teleport Teleport Elevator or door to another place, optionally with vehicles
doctor NPC doctor Treats players while too few EMS are on duty, needs the built in medical system
bed Hospital bed EMS lay a patient down for faster treatment, needs the built in medical system
jobcenter Job Center Opens the Job Center for every player

Collect and craft points have a work animation picker. Crafting without an animation uses Config.Work.craftScenario.

To keep the boss location but open another resource, add a function to ClientEditable.Overrides in editable/client.lua. The server checks job, grade, duty and distance first:

lua
ClientEditable.Overrides = {
    boss = function(point) TriggerEvent('qb-bossmenu:client:OpenMenu') end,
}

point is { id, job, type }.

Grades and permissions

A boss grade has every permission. Other grades get only what is ticked.

Permission Label in the editor Allows
boss_menu Boss menu Open the boss menu at boss locations
members_view View employees See the employee list
members_hire Hire Recruit nearby players and accept applications
members_fire Fire Fire employees with a lower grade
members_promote Promote and demote Change grades of lower ranks
members_bonus Bonuses Pay bonuses from the company account
finance_view View finances See balance and transactions
finance_deposit Deposit Deposit into the company account
finance_withdraw Withdraw Withdraw from the company account
billing Invoices and fines Send invoices and cancel company invoices
applications Applications Review Job Center applications
announce Announcements Send announcements to all employees
salaries Salaries Change grade salaries
stats Statistics Worked hours and activity charts
bodycams Bodycams Bodycam page in the boss menu
cameras Cameras Install and manage business cameras
restaurant Prices and menu Sale prices and menu items inside the limits from Sales, supplier orders paid by the company, cancelling paid orders
society_purchase Buy with company money Shops paid from the company account (with Config.Work.societyPermission)
activity Activity log Activity page of the boss menu

Every grade of the jobs in Config.Billing.allGrades can bill without billing. Rank rules always apply: nobody manages an equal or higher grade.

MDT rights per grade (report approval, warrants, wiretaps, penal code edits and more) are set in the job editor and in Config.Reports.permissions, see MDT and dispatch.

Job groups

Jobs that work together go into a group in /jobadmin, Groups. A job is in one group at most. Each group has a name, colour, icon, category and these switches:

Switch What it shares
Dispatch units Duty blips, panic alerts and bodycams. A job without a dispatch role takes the role of the group (police, EMS or fire)
Calls for the whole group Every call kind of the group reaches all its units
Doors A door that lets in one job lets in the others. Grades are compared by number, or only boss grades pass
Stashes Stash locations open for the other jobs from a grade set in the group. Personal lockers stay private
MDT Bulletins, cases and SOPs

The server decides every access from its own cache. Changes apply without a restart.

Key Type Default What it changes
Config.Groups.enabled boolean true false hides the Groups page and uses Config.JobGroups instead
Config.Groups.maxGroups number 50 Most groups on the server (1 to 500)
Config.Groups.maxJobsPerGroup number 30 Most jobs in one group (2 to 200)
Config.JobGroups table { emergency = { 'police', 'sheriff', 'ambulance' } } Old static groups. Copied into Groups once on the first start with the groups table

Exports for groups are listed in API.