Skip to content
KS-Multijob

KS-Multijob

Installation

  1. Unzip the delivered archive into your resources/ folder, under the name ks-multijob.
  2. Import the provided install.sql file into your database.
  3. Add ensure ks-multijob to your server.cfg, after oxmysql and qb-core.
  4. Restart your server.

Configuration

Config.MaxActiveJobs = 2
Config.IncompatibleJobs = {
  { "police", "gang_ballas" },
}

Each pair declared in IncompatibleJobs blocks a player from taking the second job while they still hold the first.

Adding a job to a player

An additional job is added without removing the ones already active:

exports['ks-multijob']:AddJob(source, 'mecano', 0)

The third parameter is the starting grade in the new job.

Common issues

A player can’t take a second job. Check that they haven’t already reached Config.MaxActiveJobs, and that the new job isn’t paired with one of their current jobs in Config.IncompatibleJobs.

Switching the active job doesn’t sync with job scripts. KS-Multijob updates QBCore.Functions.SetJob on every switch — check that the relevant job scripts listen for the QBCore:Client:OnJobUpdate event rather than reading a value once at login.

Something not covered here? Join our Discord.