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.84
Start the Resource
Add to your server.cfg after your framework:
cfg
ensure qb-core
ensure core_multijob5
Verify
- Start your server
- Join and use
/jobsto open the job management UI - Visit a Job Center location to browse and add available jobs
- Check the F8 console for any errors
