Exports and events ​
Player-facing exports accept a server ID and check np_jobs features. Use them only in trusted server code.
exports.np_police:canSearch(officerSrc, targetSrc, 'frisk')
exports.np_police:CreateCase(officerSrc, { title = 'Robbery investigation' })
exports.np_police:GetCase(officerSrc, caseId)
exports.np_police:AddEvidence(caseId, {
kind = 'casing', description = '9mm casing by the doorway', data = { calibre = '9mm' }
})
exports.np_police:LookupPlate(officerSrc, plate)
exports.np_police:HasActiveWarrant(identifier, 'arrest')
exports.np_police:IsBolo('plate', plate)
Resource-to-resource exports ​
np_inventory is the only caller allowed to use AuthorizeSeizure, RecordSeizure and
AuthorizeEvidenceAccess. These exports validate the officer's feature and jurisdiction, and the seizure preflight
requires a nearby restrained target, full-search authorization and an open case. RecordSeizure runs after the
server-side inventory transfer; a failed custody write leaves the item secured for reconciliation.
Other public exports include LinkToCase, GetBolos, PublishAlert, RegisterLookupProvider, IsRestrained,
GetSurveillanceCases, and OpenCctvMonitor. Review the source integration contract before consuming an export;
external providers must not expose client-supplied identity or coordinates as authoritative.
Events ​
Server-local events include np_police:citationIssued, np_police:bookingCompleted,
np_police:boloCreated, and np_police:evidenceAdded. They are notifications after the associated server record is
written. They are not authorization hooks.