Integrations and compatibility ​
np_dispatch is the call authority; neighboring resources remain the authority for their jobs, incidents, items,
phones, medical state and MDT records. Integrations are optional and do not create hard dependencies unless noted.
| Resource | Current contract |
|---|---|
np_jobs |
API 1 feature-pack host. The server exports registerFeaturePack, registerFeature, hasFeature, getFeatureConfig and isOnDuty; features resolve from attached packs and job definitions. See np_jobs API & exports. |
np_addon |
Vendored owner-aware bridge. Alert types/channels/hooks registered by a resource are removed when that owner stops. |
np_phone |
Uses the emergency call/location/unanswered events and managed dispatcher sign-in API. 911/912 retain legacy job access and can also be feature-configured; 311 is available to dispatch.answer members. The dispatch console does not claim phone calls or expose live caller activity. |
np_radio |
Listens for server-local np_radio:emergency(src, reason) and np_radio:panic(src, reason). The current radio plan has not shipped these runtime events. |
np_medic |
Listens for planned server-local np_medic:playerDowned(target, details). Current medic plan has not shipped this runtime event. |
np_npchandler |
Maps np_npchandler:incident(incident) categories when a known type and server coordinates exist. Unanswered phone calls emit np_dispatch:npc:triage; NPC dialog and response require an np_npchandler API. |
np_colshape |
Optional zone routing calls IsPointInsideColshape(zone, x, y, z) when started. |
np_drugs |
fromLegacy(payload) maps known old drug alert types. The old export must opt in or be migrated by its owner. |
np_np-remake |
createCall(incident) and getActiveCalls(src) return envelope-shaped responses for its dispatch experiment. |
md-stempeluhr / np_mdt |
Only minimized server-local lifecycle events are emitted. No checked-in FiveM API supports HTTP ReportCall/ResolveCall or reverse sync, so the resource does not claim those calls appear in the MDT. |
np_admin |
Optional vendored lib/np_admin.lua permissions, settings, test-fire and close-call actions. No ACE fallback. |
Add a publisher ​
Register an alert type once at server startup, then publish from server code:
lua
exports.np_dispatch:registerAlertType({
id = 'environmental.wildfire', label = 'Wildfire', code = 'FIRE',
channels = { 'fire', 'police' }, priority = 1, ttl = 1800,
})
exports.np_dispatch:publish({
type = 'environmental.wildfire',
coords = { x = 100.0, y = 200.0, z = 30.0 },
title = 'Brush fire reported', dedupeKey = 'wildfire:zone-4',
})
The resource must publish server-side. The call bus cannot intercept another resource's exports, HTTP endpoints, or client events without an explicit adapter.