Integrations & compatibility ​
np_spy-pigeon is an addon to np_surveillance and needs it, as well as
np_npchandler and np_prophandler. Everything else is optional and auto-detected. Every call into an optional resource is wrapped, so a missing or stopped resource, or a missing export,
degrades a feature instead of breaking a handler. Config.Integrations.<name> = false switches one sibling off; anything
else means "use it when it runs".
Compatibility ​
| Area | Supported (all optional except np_surveillance, np_npchandler and np_prophandler) |
|---|---|
| Investigations | np_surveillance (required) |
| Peds and props | np_npchandler, np_prophandler (required) |
| Framework | es_extended, then qbx_core, qb-core, standalone |
| Inventory | np_inventory, then ox_inventory, qb-inventory, the framework's own inventory |
| Appearance restore | np_character, then illenium-appearance / fivem-appearance, skinchanger, native |
| Notifications | np_hud, then ox_lib, the built-in Nimbus toasts |
| Interaction | ox_target / qb-target / the E prompt; np_menu for catching; the loft coop prop's own option (np_prophandler) |
| Voice | pma-voice (mute while flying, directional mic) |
| np_* | np_admin, np_hud, np_phone, np_shops, np_helicam (BOLO), np_metal-scanner, np_menu, np_crouch-crawl-shoot, np_inventory, np_character |
np_surveillance ​
np_surveillance owns the investigation: cases, members, subjects, the intel stream, devices, lines, warrants and the ops console. np_spy-pigeon owns the bird and uses only np_surveillance's public API (Exports). The other side of this page is np_surveillance → Integrations.
| What | np_surveillance export | When |
|---|---|---|
Register the bird as an intel source: np_spy-pigeon, layer bird, kind bird, icon dove |
registerSource |
At start, and again on every np_surveillance:server:ready (its registry does not survive a restart) |
| Announce every flying bird | pingSource('np_spy-pigeon', serial, coords, data) |
Every Config.Surveillance.pingInterval seconds (3) per bird |
| List the cases to fly for | listCases { status = 'open', member = <your identifier>, limit = Config.Surveillance.caseLimit } |
When the loft opens |
| Check the picked case | canAccess(src, caseId) |
On launch. A refusal answers You have no access to that case |
| File what the senses find | addIntel(entry) |
Per photo, plate read, mic report and mark (Senses & intel) |
| Tag a marked person | tagSubject(caseId, { ref = <identifier>, name }, { name }) |
When a person is marked, before the sighting is filed |
Rules of the bridge:
- Pings never carry
data.caseId. np_surveillance turns a source ping that has acaseIdinto an intel entry, and a bird pings every few seconds. The case travels asdata.casefor display only. A ping announces the bird and carriesbird,serial,callsign,operator,case,battery,stateandalt. What shows on a case, its map, timeline and replay is the intel the bird files, each entry with the bird's position. - Per-call checks. Every call is protected and first checks that np_surveillance is started. If it stops mid-flight, the flight carries on, nothing is filed, and a photo still reaches the np_phone gallery with a toast that np_surveillance did not take it. When it comes back it is registered again.
- A case is optional. With No case nothing is filed (Senses & intel).
- Entries are shaped by the server. The server decides who may file what: the bird has to be flying with that tool in its loadout, near what it reports, and within the rate limits.
- Case access is np_surveillance's. The loft only offers cases you are a member of, and launch asks
canAccessagain, so a case you lost access to cannot be flown for.
Evidence and case data are read from np_surveillance, not from this resource: see Exports & state.
State bag ​
While a bird is flying, Player(src).state.npSpyPigeon is set (replicated) to
{ id, serial, callsign, bird, loftId, state }. It is nil otherwise. The bird scanner and the HUD's teammate labels
read it; other resources may as well (Exports & state).
np_* siblings ​
| Sibling | With it | Without it |
|---|---|---|
| np_inventory | The five items are registered at runtime (tints, categories, use callbacks); the caught pigeon carries its serial; your inventory is locked while you fly | ox / qb / ESX inventory bridge |
| np_admin | Nodes np_spy-pigeon.fly and .admin, the settings page Spy Pigeon, the staff actions, the audit log, the central theme (Controls & admin) |
Jobs and grades only; the console and the np_admin_fallback convar count as staff; the log goes to Config.Logs.webhook |
| np_hud | Toasts with the app header; the HUD is hidden while you are a bird | The built-in Nimbus toasts, and your HUD stays |
| np_phone | Photos in the gallery (tagged with the case) and np_phone's upload target; the phone is blocked while you fly | No gallery, the phone stays usable |
| np_shops | Sells bread, bird spikes and bird scanners (Config.Shop) |
Nothing is sold |
| np_helicam | A plate read is checked against its BOLO list (IsBolo) and a hit raises the entry to severity 4 |
No BOLO check, plate reads stay at severity 2 |
| np_metal-scanner | A carried suspicious_pigeon is a tiny camera in a scan |
Not found by scanners |
| np_menu | The Grab pigeon option in its player context menu | ox_target or qb-target option, else an E prompt |
| np_crouch-crawl-shoot | Stance changes are blocked while you fly | You could crouch as a bird |
| np_character | Your appearance is saved and restored through it | illenium-appearance / fivem-appearance, skinchanger, then native |
np_npchandler and np_prophandler ​
Both are hard dependencies at 1.1.0+ (fxmanifest dependencies), with no Config.Integrations key and no fallback.
np_spy-pigeon creates no ped or object itself, and both handlers delete what it made when it stops.
| Handler | Used for | Exports |
|---|---|---|
| np_npchandler | Your body at the loft: a networked ped created with clone = 'player', so it looks like you, deleted when you come back |
client createNetworkedPed, deleteNetworkedPed |
| np_npchandler | The hawk: an immediate local ped (a_c_chickenhawk, ped type 28, not frozen) that dives at the bird |
client createLocalPed, getPedEntity, deleteLocalPed |
| np_prophandler | Tactical droppings (a falling local prop, deleted after 3 s) and the bird-spikes placement ghost | client createLocal, deleteLocal |
| np_prophandler | The coop prop of a loft with prop: a streamed prop np_spy-pigeon:<loft id> (spawn distance 60 m) whose E option fires np_spy-pigeon:loft:open. Registered again on np_prophandler:ready |
registerProp, removeProp |
Frameworks ​
np_spy-pigeon picks one framework bridge at start: es_extended, then qbx_core, then qb-core, then standalone.
| es_extended | qbx_core / qb-core | standalone | |
|---|---|---|---|
| Identifier | xPlayer.identifier |
citizenid |
The FiveM license |
| Jobs | Framework job and grade | Framework job and grade, duty | No jobs: only np_admin holders can fly |
Name on the intel (operator) |
xPlayer.getName() |
Character name | The player name |
Case membership in np_surveillance is looked up by the framework identifier, so the loft lists the cases you were added to as that character.
Inventories ​
| Items | Use callback | Items to add by hand | |
|---|---|---|---|
| np_inventory | Registered at runtime | server.export |
none |
| ox_inventory | From data/items.lua |
server.export |
The block |
| qb-inventory (and forks) | Registered through AddItem at start |
CreateUseableItem |
none |
| Default ESX inventory | From the items table |
RegisterUsableItem |
The SQL |
Third-party resources ​
| Resource | How it fits |
|---|---|
| pma-voice | Your own voice is muted while you fly; the directional mic raises the volume of voices in its cone. SaltyChat and YACA are detected but not controlled: proximity voice stays on with them |
| ox_target, qb-target | The loft entrance and the Grab pigeon option. Without them an E prompt |
| ox_lib | Notifications when np_hud is not running |
| screenshot-basic | Photos get a picture: uploaded to np_phone's target, or to Config.Photos.uploadUrl |
| illenium-appearance, fivem-appearance, skinchanger | Your appearance is saved and restored when np_character is not running |