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 jobspolice,ambulanceandmechanicwith 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 inqbx_core/shared/jobs.lua, with the departmentsbcsoandsaspnext topolice. - QBCore: qb-policejob, qb-ambulancejob and qb-mechanicjob in
resources/[qb], with the jobs inqb-core/shared/jobs.lua. The QBCore recipe was removed from txAdmin on 29 October 2026; see Move your FiveM server from QBCore to Qbox.
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 0in the Live Console of txAdmin. - Qbox: in the game, first type
/optinand then/setjob 1 police 0. This only works in the game, for admins. - QBCore: type
/setjob 1 police 0in the game, orsetjob 1 police 0in 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 = trueines_extended/shared/config/main.lua). Officers open their menu with F6. Want to keep track of who is working? Then setConfig.EnableESXService = trueinesx_policejob/config.lua. Officers then go into service by putting on their uniform in the locker room, andConfig.MaxInServicesets 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/cuffonly work on duty./jobshows 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
setjoband/revive, which gets someone back on their feet, are for staff: with ESX theadminandownergroups, with Qboxgroup.adminand with QBCoreqbcore.adminorqbcore.god. With Qbox, a moderator ingroup.modcan't use them. See Admins and permissions on your FiveM server.
Not working?
- **Qbox:
/setjobdoes nothing**: type/optinfirst. 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 thejobsandjob_gradestables. Add it and typerefreshjobsin the Live Console, or restart your server. - **Qbox and QBCore:
/cuffor the police menu doesn't work**: the player isn't on duty, or the job has notype = '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:policeinox.cfgand restart.
