QBCore Frameworkqbcore.netCommunity docs
On this page

2 min read

qb-policejob

qb-policejob provides the official QBCore police gameplay resource: duty/location interactions, police equipment and armory flows, cuff/escort interactions, evidence handling, vehicle impound integration, cameras/radars, anklet tracking and police commands.

It is not an all-in-one MDT or dispatch product. If your server has an MDT/dispatch system, that is a separate resource/integration unless your deployed fork explicitly adds it.

Key configuration

Current official documentation exposes settings including:

Config.LicenseRank = 2
Config.HandCuffItem = 'handcuffs'
Config.PoliceHelicopter = 'POLMAV'

Config.LicenseRank controls the minimum police grade that can manage licenses.

The resource also configures location groups such as duty, vehicle, stash, impound, helicopter, armory, trash, fingerprint and evidence positions. Copy coordinates from the current config.lua you deploy rather than from an old guide.

Weapon-license commands

Current QBCore documentation lists:

/grantlicense [id] [license]
/revokelicense [id] [license]

Example:

/grantlicense 12 weapon
/revokelicense 12 weapon

The police officer must meet Config.LicenseRank.

See Weapon License for the complete metadata → City Hall → shop flow.

Common police commands

The current upstream documentation also includes commands for police workflows such as:

  • /911p [message]
  • /spikestrip
  • /cuff
  • /sc
  • /clearblood
  • /seizecash
  • /cam [id]
  • /flagplate [plate] [reason]
  • /unflagplate [plate]
  • /depot [price]
  • /impound
  • /anklet
  • /ankletlocation [cid]
  • /takedrivinglicense
  • /takedna [id]

Command availability can move as the repository evolves. Verify against the exact commit deployed on your server.

Evidence system

The official resource handles evidence gameplay such as blood, fingerprints and casings. Treat the resource's own server handlers and database/config files as authoritative.

Do not add custom SQL tables like police_reports, police_alerts or police_evidence unless the resource/fork you actually deploy ships and reads them.

Armory and inventory

The resource integrates police equipment with QBCore inventory behavior. Inventory APIs belong to your installed inventory resource; use qb-inventory exports rather than inventing policejob inventory exports.

When changing armory contents:

  1. Confirm every item exists in shared items.
  2. Keep job/grade checks server authoritative.
  3. Do not trust a client-supplied item name, price or quantity.
  4. Test add/remove behavior with the exact inventory revision you run.

Impound and garages

Police impound behavior integrates with the QBCore vehicle/garage ecosystem. The current upstream resource contains police impound commands; garage storage rules live in qb-garages.

Avoid copying database mutations from a custom garage fork into qb-policejob without checking the current player_vehicles schema.

Safe customization

Prefer changing documented config and shared definitions first. When adding a network event:

RegisterNetEvent('my-police:server:action', function(targetId)
    local src = source
    local Officer = exports['qb-core']:GetPlayer(src)
    if not Officer then return end

    if Officer.PlayerData.job.name ~= 'police' or not Officer.PlayerData.job.onduty then
        return
    end

    -- Validate target, distance and the requested action server-side.
end)

See Safe Server Events.

If you would rather replace the job than extend it, compare police job scripts on RPScripts by declared QBCore support and dependencies. RPScripts and qbcore.net are operated by the same owner.

Troubleshooting

SymptomCheck
Police interaction missingJob name, duty state, configured location and required dependency state.
License command deniedPolice grade versus Config.LicenseRank.
Armory item missingShared item definition and inventory resource/API.
Impound behaves incorrectlyqb-policejob command path plus qb-garages/player_vehicles compatibility.
Copied export is nilConfirm that export actually exists in current qb-policejob source; do not rely on fork docs.

Sources

Verified against current upstream documentation/source on 2026-09-27.

Found an issue in this guide?

Send the page URL, the affected example, and a source or reproduction to the site maintainer. For a server or resource problem, use the support guide.

On this page

Leonida RP server website built with RPWebsite
RPWebsite

Advertisement · RPWebsite

Want a website for your server?

Launch a site with live player status, rules, and a join button in minutes.

Build your website