Skip to content
FIVECRATE
Addon vehicles intermediate

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.

A mechanic selects vehicles on a tablet beside three fictional police cars in a garage with red and blue reflections
Author: FiveCrate
Published:
Updated:
Read time: 14 min
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

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.

QboxQBCoreESX Legacy
Resourceqbx_policeqb-policejobesx_policejob
Fileconfig/client.luaconfig.luaconfig.lua
Car listauthorizedVehiclesConfig.AuthorizedVehiclesConfig.AuthorizedVehicles.car
Grade keyGrade number, [0] to [4]Grade number, [0]Grade name, such as officer
Who sees a carOnly the grade it is listed underIts grade and every higher gradeOnly the grade it is listed under
Who can open the garageAny job of type leo, on dutyAny job of type leo, on dutyThe job named police, on duty
How the car comes outSpawned, no purchaseSpawned, no purchaseBought once, then stored in owned_vehicles
HelicopterOne model: policeHelicopterOne model: Config.PoliceHelicopterPer-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

  1. Start the car resource and spawn the car once with an admin command. Until it spawns, no garage can show it.
  2. Note the model name you typed. Every list below wants that spawn code, not the display name.
  3. On Qbox, register the model in qbx_core/shared/vehicles.lua. The garage still works without it, but the spawn helper in qbx_core then prints No vehicle type found for model: with the name, creates a temporary vehicle and reads the type from it. The entry format and its hash rule 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.
  4. On Qbox, keep it out of the car dealer. The stock qbx_vehicleshop/config/shared.lua lists police, police2, police3 and police4 in its blocklist. 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.

  1. Open qbx_police/config/client.lua and find authorizedVehicles.
  2. 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'].
  3. For a car every rank may take, put the line in whitelistedVehicles instead. The garage menu adds that list for every grade.
  4. Restart the resource in the server console with ensure qbx_police. The Cfx docs describe ensure as: “Restarts the resource specified in the argument, if it was started.”
  5. 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.vehicle in config/shared.lua, one vec4 (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' in config/client.lua, taken out at the helicopter points in locations.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.

  1. Add the car under the lowest grade that should have it. For sergeants and up, create a [2] = { ... }, block and put the line there.
  2. List each model once. Each grade’s entries are appended separately, so a model under both [0] and [2] appears twice for a sergeant.
  3. 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.

  1. Add a table per car under every grade name that should get it: { model = 'mymodel', price = 25000 },.
  2. Give every car a price above 0. The server looks the model up in the officer’s grade list and treats a price of 0 the same as a model it did not find.
  3. Fill recruit and boss if 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.
  4. Restart with ensure esx_policejob.
  5. 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.

QboxQBCoreESX
SettingvehicleSettings in config/client.luaConfig.VehicleSettings in config.luaprops inside the car’s entry
Extra keysNumbers: [1] = trueStrings: ['1'] = trueNo separate setting
Liverylivery = 1['livery'] = 1modLivery inside props
Extras not listedTurned on: the code enables extras 1 to 20 firstTurned 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:

ResourceFile and keyGrade rule
qbx_ambulancejobauthorizedVehicles and authorizedHelicopters in config/client.luaExact grade, [0] to [4]
qb-ambulancejobConfig.AuthorizedVehicles in config.luaThe comment says “don’t add same vehicle in multiple grades. Higher rank can see lower”
esx_ambulancejobConfig.AuthorizedVehicles.car and .helicopter in config.luaExact 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

Official documentation and repository references