Skip to content

JDB-NET Multijob

A FiveM resource for Qbox that lets players switch between jobs they have previously held via an ox_lib context menu, toggle duty for their current job, and allows admins to remove jobs from players (e.g. when someone is fired).

Features

  • Player command /multijob – Opens an ox_lib context menu listing all jobs the player has ever had (stored in the database).

  • Switch job – Choose a job from the list to set it as your current job and go on duty. Job and grade labels are resolved from qbx_core so the menu shows friendly names (e.g. “Coffee Cute - Barista” instead of raw job names).

  • Toggle duty – Go on or off duty for your current job directly from the same menu.

  • Admin command /removejob – Remove a specific job from a player (e.g. after firing). If that job was their current one, they are set to the configured “unemployed” job.

All job history is stored in a MySQL table so it persists across restarts and is tied to the player’s citizenid.

Requirements

  • qbx_core
  • ox_lib
  • oxmysql

Installation

Drop the jdbnet-multijob folder into your server’s resources directory (or your chosen resources folder).

Add to your server.cfg:

ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure jdbnet-multijob

Keep ox_lib, oxmysql, and qbx_core starting before jdbnet-multijob.

No manual SQL is required: the resource creates the table jdbnet_multijob_jobs on start (if it does not already exist).

Usage

Players

  • Type /multijob in chat.
  • An ox_lib context menu opens with duty toggle and a list of your jobs.
  • Click a job to switch to it. You are set to that job and put on duty; the menu refreshes so you see the updated state.

Jobs are added to your list automatically when you have them (e.g. when you’re given a job or when you first open the menu with a current job). You can only switch to jobs that appear in this list.

Admins

/removejob [playerId] [jobName]

Removes the given job from the target player’s list (e.g. after firing them).

  • playerId – Target’s server id.
  • jobName – Job to remove (case-insensitive, e.g. police, coffeecute).

If that job is the player’s current job, they are set to the configured unemployed job and taken off duty. Only players with the permission set in AdminPermission can use this command.