Skip to content

Installation ​

Requirements ​

  • FiveM server with Lua 5.4
  • oxmysql
  • Compatible np_jobs runtime (required for player actions)
  • ESX and np_inventory are the first supported gameplay targets
  • np_dispatch for police alert routing

Resource order ​

cfg
ensure oxmysql
ensure es_extended
ensure np_inventory
ensure np_jobs
ensure np_dispatch
ensure np_police

Keep the resource name np_police; integrations use that name for exports and callbacks. The resource creates its tables at startup. Review sql/install.sql before manually provisioning a production database.

Job configuration ​

Assign the registered police.* features to a job and its ranks through np_jobs. Dispatch reception is configured separately through dispatch.receive and the police channel because np_dispatch owns routing. Case workflows also require info.job.meta.jurisdiction (for example city or county). The client cannot choose the case jurisdiction; missing metadata denies case access.

Existing databases ​

Before upgrading a database with pre-existing police cases, set each NULL jurisdiction to its actual value, for example:

sql
UPDATE police_cases SET jurisdiction = 'city' WHERE jurisdiction IS NULL;

Rows with no jurisdiction remain inaccessible until corrected. Back up the database before manual changes.

In-game MDT ​

F6 opens the canonical https://mdt.npdev.eu/dispatch?npGame=1 page. Change ui_page in fxmanifest.lua when hosting the web app elsewhere. The remote page reports readiness through a NUI callback; FiveM Enhanced servers need the b95 fix or later. /mdtpair is optional identity pairing; it does not grant web authorization.

See integration boundaries for the difference between game feature checks and the web app's existing account permissions.