How to Add Cars to a FiveM Police Garage (Qbox, QBCore, ESX)
How to add cars to the police garage in FiveM: the vehicle list and grade rules of qbx_police, qb-policejob and esx_policejob, plus liveries, extras and EMS.

- Applies to
- FiveM Legacy and FiveM for GTAV Enhanced; qbx_police at commit 7fa438f (September 26, 2026) with qbx_core v1.24.1 (October 30, 2026); qb-policejob 1.3.5 at commit 3ad3d19 (August 24, 2026); esx_policejob 1.0.2 from the ESX Legacy addons marked legacyversion 1.16.3; vMenu Enhanced on servers without a framework; sources read on December 2, 2026
- Last verified
On this page
- Direct Answer
- Where Qbox, QBCore and ESX keep police garage vehicles
- Before you start: the car’s model name
- Qbox police job: add vehicles to qbx_police
- QBCore police garage: Config.AuthorizedVehicles in qb-policejob
- ESX police garage: Config.AuthorizedVehicles in esx_policejob
- Liveries and extras when the car leaves the garage
- EMS and ambulance garages use the same lists
- Servers without a framework: limit a police car in vMenu
- FiveM Legacy and FiveM for GTAV Enhanced
- Troubleshooting
- Next Steps
Direct Answer
To add cars to the police garage in FiveM, make the addon car spawn by its model name first, then add that model name to the police job’s vehicle list. On Qbox, add a model = 'Label' line under every grade that should get the car in authorizedVehicles of qbx_police/config/client.lua. On QBCore, add it under one grade of Config.AuthorizedVehicles in qb-policejob/config.lua; higher grades inherit it. On ESX, add { model = '...', price = ... } under each grade name in Config.AuthorizedVehicles.car of esx_policejob/config.lua. Then restart the resource with ensure. On ESX, each officer then buys the car once in the garage’s vehicle shop.
Where Qbox, QBCore and ESX keep police garage vehicles
A police garage is a menu inside the police job resource, not a separate garage script. It reads a list of model names from the job’s config and checks the officer’s grade (rank) before it shows them. The car’s model files belong to its own resource, so install that first with how to add addon cars to a FiveM server.
| Qbox | QBCore | ESX Legacy | |
|---|---|---|---|
| Resource | qbx_police | qb-policejob | esx_policejob |
| File | config/client.lua | config.lua | config.lua |
| Car list | authorizedVehicles | Config.AuthorizedVehicles | Config.AuthorizedVehicles.car |
| Grade key | Grade number, [0] to [4] | Grade number, [0] | Grade name, such as officer |
| Who sees a car | Only the grade it is listed under | Its grade and every higher grade | Only the grade it is listed under |
| Who can open the garage | Any job of type leo, on duty | Any job of type leo, on duty | The job named police, on duty |
| How the car comes out | Spawned, no purchase | Spawned, no purchase | Bought once, then stored in owned_vehicles |
| Helicopter | One model: policeHelicopter | One model: Config.PoliceHelicopter | Per-grade lists in Config.AuthorizedVehicles.helicopter |
These resources are the police jobs of three roleplay frameworks. A server without a framework, such as a racing, PvP or freeroam server built on the txAdmin recipe described as “A minimal server, without framework”, has no police garage; the vMenu section below shows how such a server limits a car to staff or police players.
Before you start: the car’s model name
- Start the car resource and spawn the car once with an admin command. Until it spawns, no garage can show it.
- Note the model name you typed. Every list below wants that spawn code, not the display name.
- On Qbox, register the model in
qbx_core/shared/vehicles.lua. The garage still works without it, but the spawn helper inqbx_corethen printsNo vehicle type found for model:with the name, creates a temporary vehicle and reads the type from it. The entry format and itshashrule are in adding a car to a Qbox dealership. Qbox’s docs say that file “already has every GTA vehicle”, so stock police cars need no entry. - On Qbox, keep it out of the car dealer. The stock
qbx_vehicleshop/config/shared.lualistspolice,police2,police3andpolice4in itsblocklist. Add your model there too.
Qbox police job: add vehicles to qbx_police
The Qbox txAdmin recipe downloads the resource to resources/[qbx]/qbx_police. The Cfx docs explain that “Any folder in the resources/ folder is parsed as a resource”, while folders in brackets are only categories, so the resource is qbx_police. The garage list is in config/client.lua. This is the stock block, shortened to three cars of grade 0:
return {
authorizedVehicles = {
[0] = { -- Grade 0
police = 'Police Car 1',
police2 = 'Police Car 2',
sheriff = 'Sheriff Car 1',
},
},
whitelistedVehicles = {},
}
The stock file has five blocks, [0] to [4], each with the same eight cars: police, police2, police3, police4, policeb, policet, sheriff and sheriff2. The key left of = is the model name; the text on the right is the label in the menu.
- Open
qbx_police/config/client.luaand findauthorizedVehicles. - Add one line per car under each grade that should get it, in the form
mymodel = 'Menu Label',. A model that starts with a number needs brackets and quotes, as Qbox’s docs show for vehicles:['5vigero']. - For a car every rank may take, put the line in
whitelistedVehiclesinstead. The garage menu adds that list for every grade. - Restart the resource in the server console with
ensure qbx_police. The Cfx docs describeensureas: “Restarts the resource specified in the argument, if it was started.” - Test on duty. Go on duty as an officer and walk into a garage point.
Grades are exact on Qbox
The menu reads one list: config.authorizedVehicles[QBX.PlayerData.job.grade.level]. A car listed only under [0] is not shown to a grade 3 officer. In the stock qbx_core/shared/jobs.lua, the police grades are Recruit (0), Officer (1), Sergeant (2), Lieutenant (3) and Chief (4). If you add grades to the job, as in adding jobs on Qbox, QBCore and ESX, add an authorizedVehicles block with the same number: the menu code has no fallback for a grade without a block, not even to whitelistedVehicles.
The garage zone opens for any job whose type is leo while the player is on duty. The stock jobs.lua has three such jobs, police (LSPD), bcso (BCSO) and sasp (SASP), and the menu does not look at the job name. All three share one list per grade.
Garage points, plates and the helicopter
- Garage points:
locations.vehicleinconfig/shared.lua, onevec4(position and heading) per point. The stock file has four. - Plates:
policePlatePrefix = 'LSPD'in the same file. The code fills the rest of an 8-character plate with random digits. - Keys: the server hands the officer the keys through
qbx_vehiclekeys. - Helicopter: one model,
policeHelicopter = 'polmav'inconfig/client.lua, taken out at the helicopter points inlocations.helicopter.
QBCore police garage: Config.AuthorizedVehicles in qb-policejob
QBCore’s documentation says the framework “has withdrawn from other platforms” and that its existing pages “remain here as a reference”. This section is for servers already on QBCore; QBCore vs Qbox vs ESX covers what that means for a new server. In qb-policejob/config.lua, the stock list is one block:
Config.AuthorizedVehicles = {
-- Grade 0 and higher
[0] = {
police = 'Police Car 1',
police2 = 'Police Car 2',
sheriff = 'Sheriff Car 1',
},
}
The real block holds the same eight cars as Qbox’s. The comment “Grade 0 and higher” describes the rule: the menu loops for grade = 0, playerGrade, adding each grade’s list in turn.
- Add the car under the lowest grade that should have it. For sergeants and up, create a
[2] = { ... },block and put the line there. - List each model once. Each grade’s entries are appended separately, so a model under both
[0]and[2]appears twice for a sergeant. - Restart with
ensure qb-policejob.
Three more details from the same files:
Config.WhitelistedVehicles = {}sits at the top of the config, but no file of the resource reads it at commit 3ad3d19 (August 24, 2026). Use grade[0]for cars every rank may take.- Plates come from the locale value
police_plate = 'LSPD', which the English locale says “Should only be 4 characters long”, followed by a number from 1000 to 9999. - The helicopter is one model,
Config.PoliceHelicopter = 'POLMAV'.
The garage checks PlayerJob.type == 'leo' and PlayerJob.onduty. In the stock qb-core/shared/jobs.lua, police is the only job of type leo.
ESX police garage: Config.AuthorizedVehicles in esx_policejob
The ESX recipe moves the addons to resources/[esx_addons], so the file is resources/[esx_addons]/esx_policejob/config.lua. ESX police cars are bought, not spawned: an officer buys a car once from the garage’s vehicle shop entry, and it is then kept in the database. This is the car part of the stock list; a helicopter part with the same grade keys follows it.
Config.AuthorizedVehicles = {
car = {
recruit = {},
officer = {
{ model = 'police3', price = 20000 },
},
sergeant = {
{ model = 'policet', price = 18500 },
{ model = 'policeb', price = 30500 },
},
lieutenant = {
{ model = 'riot', price = 70000 },
{ model = 'fbi2', price = 60000 },
},
boss = {},
},
}
The keys are grade names from the job_grades rows in esx_policejob.sql: recruit (Recruit), officer (Officer), sergeant (Sergeant), lieutenant (Lieutenant) and boss (Chief). The client reads Config.AuthorizedVehicles[type][ESX.PlayerData.job.grade_name], so each grade sees only its own list.
- Add a table per car under every grade name that should get it:
{ model = 'mymodel', price = 25000 },. - Give every car a price above 0. The server looks the model up in the officer’s grade list and treats a price of
0the same as a model it did not find. - Fill
recruitandbossif those ranks need cars. Both are empty in the stock file, so a recruit or the chief gets “you’re not authorized to buy this kind of vehicles.” in the car shop. - Restart with
ensure esx_policejob. - Buy the car on duty. Open the shop at the garage marker, view the car and buy it. The price comes out of the character’s cash:
xPlayer.getMoney()is documented as “Get player’s current cash balance.”
The purchase writes an owned_vehicles row with the officer’s identifier, the plate, the type (car or helicopter) and the job name. The server makes a unique plate with the prefix POL, 2 letters and 3 numbers. From then on the officer takes it out with open garage and parks it with store vehicle in garage. esx_vehicleshop must be running, because the manifest lists it as a dependency and the garage list is read through its callback.
Two client-side filters decide what appears in the shop. A model the game cannot load (IsModelInCdimage) is skipped, and the label is the game’s own name for the car, GetLabelText(GetDisplayNameFromVehicleModel(model)). An addon car gets that name from <gameName> in its vehicles.meta and an AddTextEntry line, the method vMenu’s docs describe for naming addon cars.
Helicopters work the same way under helicopter. The stock file gives polmav to lieutenant and boss, with props = { modLivery = 0 }. The server copies props into the stored vehicle, so a car can carry a livery the same way.
Liveries and extras when the car leaves the garage
Qbox and QBCore can switch extras (light bars, push bars and other parts the model defines) and set a livery on every car they spawn. The stock entries use the placeholder names car1 and car2; replace them with your model name.
| Qbox | QBCore | ESX | |
|---|---|---|---|
| Setting | vehicleSettings in config/client.lua | Config.VehicleSettings in config.lua | props inside the car’s entry |
| Extra keys | Numbers: [1] = true | Strings: ['1'] = true | No separate setting |
| Livery | livery = 1 | ['livery'] = 1 | modLivery inside props |
| Extras not listed | Turned on: the code enables extras 1 to 20 first | Turned off: the code disables every existing extra from 1 to 20 first |
Qbox and QBCore apply livery with SetVehicleLivery only. Mod-kit liveries are a separate vehicle mod type, VMT_LIVERY_MOD = 48, set with SetVehicleMod, so a car whose liveries are mod-kit parts ignores that setting. On ESX, esx_lib applies modLivery to mod type 48 and, when props has no livery key, to SetVehicleLivery as well. The FiveM liveries guide explains how to tell the two kinds apart and how each framework saves them.
Lights and sirens are not part of the garage. “How to add sirens to police cars” is answered by the car’s carcols.meta or an ELS file and a siren controller, covered in ELS vs non-ELS police lights and server sided sirens.
EMS and ambulance garages use the same lists
The ambulance jobs copy the police pattern, so an addon ambulance is added the same way:
| Resource | File and key | Grade rule |
|---|---|---|
qbx_ambulancejob | authorizedVehicles and authorizedHelicopters in config/client.lua | Exact grade, [0] to [4] |
qb-ambulancejob | Config.AuthorizedVehicles in config.lua | The comment says “don’t add same vehicle in multiple grades. Higher rank can see lower” |
esx_ambulancejob | Config.AuthorizedVehicles.car and .helicopter in config.lua | Exact grade name: ambulance, doctor, chief_doctor, boss |
Addon cars such as FiveCrate’s FiveM police cars and EMS vehicles and ambulances go into these lists the same way, by model name, after their resource is installed.
Servers without a framework: limit a police car in vMenu
A pursuit, freeroam or PvP server without a framework has no job grades. vMenu Enhanced, which its docs call “the new vMenu, for both FiveM Enhanced (GTA V Enhanced) and FiveM Legacy”, finds addon cars in its Vehicle Spawner on its own: “Valid vehicles are automatically detected by the game, including addons.” To lock one car to certain players, list it in config/model-whitelists.json. This is the docs’ example:
{
"vehicles": ["adder"],
"peds": ["a_c_chop"],
"weapons": ["weapon_rpg"]
}
Each listed vehicle gets its own permission, such as vMenu.Enhanced.SupplementalPermissions.VehicleModels.adder, and “is shown locked to everybody without that permission.” Names are lowercased for you and may hold only letters, digits and underscores. Grant the permission to a police group in server.cfg with add_ace, whose syntax the Cfx docs give as add_ace [principal] [object] [allow|deny]:
add_ace group.police vMenu.Enhanced.SupplementalPermissions.VehicleModels.adder allow
Players join that group with add_principal, as described in the ACE permissions guide. Anyone who holds vMenu.Enhanced.Menus.VehicleSpawner.All “already has every whitelisted model”, so do not give that permission to everyone. Start the car resource before vMenu in server.cfg, as vMenu’s docs ask. The whitelist file is “Read at server start. Restart the resource after changing it.”
FiveM Legacy and FiveM for GTAV Enhanced
None of these lists names a platform: they hold model names, labels, grades and prices. The txAdmin recipe list for Enhanced includes ESX Legacy and Qbox, so the same edits apply there. The car resource is what differs: on Enhanced, when a resource has a stream_enhanced folder, its “contents are loaded instead of the stream folder”; without one, the stream folder is used, which the Cfx docs call deprecated. Make sure the car spawns on the platform your server runs before you list it.
Troubleshooting
The new car is missing from the Qbox police garage
Check that the line is under the block of the officer’s own grade number, or in whitelistedVehicles. Then check the model name against the spawn code and run ensure qbx_police again. Read the Live Console after the restart: Qbox’s own setup checklist expects it to show no SCRIPT ERROR, so any such line after your edit points to the change you just made.
A QBCore officer sees a car twice
The model is listed under two grades. Keep it under the lowest one only.
ESX: “you’re not authorized to buy this kind of vehicles.”
The officer’s grade name has no list, or its list is empty, or none of its models can be loaded by the game. Check the grade name in the job_grades table, then check that the car resource is running.
ESX: “you cannot afford that vehicle” with enough money
The client shows this whenever the server refuses the purchase, not only when cash is short. Check the server console first: for a model that is not in the officer’s grade list, a price of 0, or a player more than 35 units from the station’s shop point, the server prints Attempted To Buy Invalid Vehicle with the model hash. An off-duty officer gets “you are off duty.” instead of a console line.
The garage marker or menu does not appear
On Qbox and QBCore, the player’s job must be of type leo and on duty. On ESX the job must be named police; a second police job with another name gets no garage from esx_policejob. On ESX, an off-duty officer sees “you are off duty.” at the marker, and with Config.EnableESXService = true (the stock value is false) an officer who has not entered service sees “you have not entered service! You’ll have to get changed first.”
Next Steps
- Set the car’s lights and controller with ELS vs non-ELS police lights.
- Add a sheriff or state police job with its own grades: adding jobs on Qbox, QBCore and ESX.
- Sell civilian versions in the dealership with adding addon cars to a dealership.
- Fix a livery that does not apply with the FiveM liveries guide.
Browse Addon vehicles
Addon vehicles with custom handling, audio and visual modifications for FiveM servers.
Official documentation and repository references
Related guides
How to Add Jobs to a FiveM Server (Qbox, QBCore, ESX)
How to add jobs to a FiveM server on Qbox, QBCore and ESX Legacy, with jobs.lua and gangs.lua blocks, the ESX job tables, /setjob and the common errors.
FiveM ELS vs Non-ELS: Police Lights, LVC and ULC Explained
FiveM ELS vs non-ELS police lights: how the two lighting systems work, how to install ELS-FiveM, LVC and ULC, and how to fix lights that break.
How to Make FiveM Liveries and Add Them to Addon Cars
How to make FiveM liveries: texture liveries in the .ytd, mod-kit liveries in carcols.meta, adding multiple liveries, Enhanced, and saving them in garages.
Add Addon Cars to a QBCore, Qbox or ESX Dealership
How to add a car to a QBCore dealership, a Qbox vehicle shop or the ESX vehicleshop: the vehicles.lua entry, the SQL rows and the garage storage checks.
How to Add Addon Cars to a FiveM Server
How to add cars to a FiveM server: stream folder, vehicles.meta and data_file lines in fxmanifest.lua, ensure, a spawn test, pack merging and Enhanced.




