Skip to content

Core Multiple Jobs

Requirements

Framework
QBCoreESXQBX
Database
MySQL

Setup

1
Add the Resource

Place core_multijob into your server's resources folder.

resources/
  [c8re]/
    core_multijob/
2
Import the Database

Execute the SQL file included with the resource:

sql
CREATE TABLE `user_jobs` (
  `citizenid` varchar(100) NOT NULL,
  `job` varchar(100) NOT NULL,
  `grade` int(11) NOT NULL,
  `removeable` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Or import core_multijob.sql through your database management tool (HeidiSQL, phpMyAdmin, etc).

3
Configure the Framework

Open config.lua and set your framework:

lua
-- QB version uses qb-core automatically
-- ESX version:
Config.NewESX = true  -- false for es_extended versions < 1.8
4
Start the Resource

Add to your server.cfg after your framework:

cfg
ensure qb-core
ensure core_multijob
5
Verify
  1. Start your server
  2. Join and use /jobs to open the job management UI
  3. Visit a Job Center location to browse and add available jobs
  4. Check the F8 console for any errors