Skip to content

Installation ​

Requirements ​

  • FiveM server with Lua 5.4
  • oxmysql (required)
  • np_jobs for player routing and capability permissions (recommended for production)
  • Recommended ecosystem: ESX and np_inventory
  • Optional: np_admin for staff settings/actions; np_phone, np_radio, np_npchandler, np_colshape

np_dispatch itself does not call ESX APIs or require an inventory except when a panic feature sets requireItem. Without np_jobs, the server can store calls but has no job or ACE fallback for player access.

Resource order ​

cfg
ensure oxmysql
ensure es_extended       # if used by your server
ensure np_inventory      # recommended; needed for configured panic items
ensure np_admin          # optional
ensure np_jobs           # required for player feature routing
ensure np_phone          # optional integration
ensure np_dispatch

Keep the resource name np_dispatch; exports and NUI callbacks use that name. The resource creates its tables on startup. sql/install.sql is included for review or manual provisioning.

Configure job features ​

Grant features through the np_jobs job definition (or a faction/rank feature source supported by your host). Feature permission nodes are feature.dispatch.receive, feature.dispatch.console, and so on; np_jobs remains the authority for job, rank, permission-node and duty decisions.

lua
features = {
  ['dispatch.receive'] = {
    channels = { 'police' },
    minPriority = 3,
    offDuty = 'none',
  },
  ['dispatch.units'] = { preset = 'police' },
  ['dispatch.panic'] = { channels = { 'police', 'medical', 'fire' }, cooldown = 30 },
  ['dispatch.console'] = { channels = { 'police' } },
}

See feature schemas for each feature and configuration key. There are no hardcoded job names in this resource. Calls and raw reports default to 30-day and 7-day retention respectively.