Police, EMS and mechanic jobs on your FiveM server

Which scripts provide police, EMS and mechanic jobs on ESX Legacy, Qbox and QBCore, and how to set up grades, the job, duty and permissions.

EliteStarHosting Team4 December 20265 min read
FiveM server hosting from €5 a month: view the plans

The ESX Legacy, Qbox and QBCore recipes already install scripts for police, EMS and mechanics, together with the jobs and grades. Below is the situation in December 2026. Paychecks, company money and the boss menu are covered in Set up a FiveM economy.

Make a backup first and export your database with Export Database.

Need a server? Our FiveM server hosting starts at €5 a month, with txAdmin ready to go. You can also try one free for 24 hours.

Which scripts you have

  • ESX Legacy: esx_policejob, esx_ambulancejob and esx_mechanicjob from ESX-Legacy-Addons, in resources/[esx_addons]. The recipe already puts the jobs police, ambulance and mechanic with their grades in your database. Only import their .sql files if you installed ESX without the recipe, otherwise you get errors about duplicate rows.
  • Qbox: qbx_police, qbx_ambulancejob (with qbx_medical) and qbx_mechanicjob in resources/[qbx]. The jobs are in qbx_core/shared/jobs.lua, with the departments bcso and sasp next to police.
  • QBCore: qb-policejob, qb-ambulancejob and qb-mechanicjob in resources/[qb], with the jobs in qb-core/shared/jobs.lua. The QBCore recipe was removed from txAdmin on 29 October 2026; see Move your FiveM server from QBCore to Qbox.

The resources folder with subfolders in brackets

Changing grades

ESX keeps grades in the job_grades table. This gives the lowest police grade a different name and salary:

UPDATE job_grades SET label = 'Cadet', salary = 30 WHERE job_name = 'police' AND grade = 0;

Run it in HeidiSQL and restart your server. Adding a grade with a new name? Then also add that name to Config.AuthorizedWeapons, Config.AuthorizedVehicles and Config.Uniforms in esx_policejob/config.lua. Otherwise the armory doesn't work for that grade. Note: esx_policejob only works for the job named police.

Qbox and QBCore recognise police by type = 'leo' and EMS by type = 'ems'. That's why most of qbx_police also works for your own department. Add it to qbx_core/shared/jobs.lua:

['swat'] = {
    label = 'SWAT',
    type = 'leo',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        [0] = { name = 'Officer', payment = 75 },
        [1] = { name = 'Commander', payment = 150, isboss = true, bankAuth = true },
    },
},

With Qbox, also add the name to the setr inventory:police line in ox.cfg, next to your server.cfg: ["police", "bcso", "sasp", "swat"]. Then the department can use the armory and evidence of ox_inventory. Restart your server afterwards. With QBCore you write grades with quotes, such as ['0'].

Never change the number of an existing grade: players remember their grade number and would lose their grade.

Giving someone the job

Use the ID txAdmin shows for the player, here 1. The last number is the grade:

  • ESX: type setjob 1 police 0 in the Live Console of txAdmin.
  • Qbox: in the game, first type /optin and then /setjob 1 police 0. This only works in the game, for admins.
  • QBCore: type /setjob 1 police 0 in the game, or setjob 1 police 0 in txAdmin's Live Console.

After that, bosses hire people themselves through the boss menu.

On and off duty

  • ESX puts someone with a new job on duty straight away (Config.DefaultJobDuty = true in es_extended/shared/config/main.lua). Officers open their menu with F6. Want to keep track of who is working? Then set Config.EnableESXService = true in esx_policejob/config.lua. Officers then go into service by putting on their uniform in the locker room, and Config.MaxInService sets a maximum.
  • Qbox and QBCore: with defaultDuty = true, someone is on duty when they log in. Players go on or off duty at the duty point in the police station or the hospital, with E. Police commands such as /cuff only work on duty. /job shows your job, grade and duty.

Permissions

  • What officers and EMS staff can do depends on their job, grade and duty, not on ACE. So don't put them in an admin group.
  • Admin commands such as setjob and /revive, which gets someone back on their feet, are for staff: with ESX the admin and owner groups, with Qbox group.admin and with QBCore qbcore.admin or qbcore.god. With Qbox, a moderator in group.mod can't use them. See Admins and permissions on your FiveM server.

Not working?

  • **Qbox: /setjob does nothing**: type /optin first. On Qbox, admin commands only work after that, and only in the game.
  • **ESX: the job, grade or both are invalid**: the job or grade isn't in the jobs and job_grades tables. Add it and type refreshjobs in the Live Console, or restart your server.
  • **Qbox and QBCore: /cuff or the police menu doesn't work**: the player isn't on duty, or the job has no type = 'leo'.
  • A player lost their grade after a change: you changed or removed a grade number. Put the old number back.
  • No access to the armory or evidence (Qbox): add the job to setr inventory:police in ox.cfg and restart.

Your own server for this? FiveM server hosting from €5 a month.

Online within minutes, DDoS protection included, no contract.