Skip to content

np_spy-pigeon v2.0.0 ​

Surveillance pigeons, built on the Nimbus UI design system. At a loft an officer picks a bird, a loadout, a launch point and one of their np_surveillance cases. Their body stays seated at the loft while they become the pigeon on the roof of the building. They fly the city on a battery and recharge it on power lines, fuse boxes, street lamps and payphones.

np_spy-pigeon is a thin addon to np_surveillance. It owns the bird. np_surveillance owns the investigation.

  • What the bird does: it announces itself to np_surveillance as a live source and pings it while it flies. Its photos, plate reads, mic reports and marked suspects are filed as intel on the case you picked at the loft, each with the bird's position, so they show on that case's map, timeline and replay.
  • What everyone else gets: bread crumbs, signal jammers, bird spikes, a bird scanner and the option to grab a perched pigeon. See Fun & counter-play.
  • np_surveillance, np_npchandler and np_prophandler are required. They are declared dependencies and have to be started first (Installation). Everything else is optional and plugs in when it runs.

It runs on es_extended, qbx_core or qb-core, or standalone, with np_inventory, ox_inventory or qb-inventory. es_extended with np_inventory is the best-tested path. Who may fly is an np_admin permission node or a job and grade from Config.Access (no ACE). The UI ships in English and German and follows the server theme from np_admin.

The Pigeon Loft: bird choice, loadout, launch point, pre-flight battery and the np_surveillance case picker

Flight HUD Camera: plate lock-on, directional mic, photo roll
Flight HUD Camera
Charging on a power line: balance game and a zap Caught: mash to break free
Charging Struggle
The Suspicious pigeon item Hawk alert
Inspect Hawk alert

The screenshots come from the browser mock of the web UI.

What lives where ​

np_spy-pigeon (this resource) np_surveillance
Lofts, becoming a pigeon, the body left behind Cases, case members, access
Flight, battery, charge points, link range The intel stream and the case file
The bird's camera, plate reader, directional mic, marking Subjects (the bird tags them through tagSubject)
Suspicion, hawk, bread, droppings, coo, PigeonOS, posters Devices (GPS trackers, bugs, ...), lines, warrants
Catching birds, jammer, spikes, scanner The ops console, map and timeline: they draw the intel the bird files. The bird registers as the source np_spy-pigeon (layer bird)

A flight can also go without a case. The bird flies the same way, but nothing is filed: photos only reach the np_phone gallery and marking answers Pick a case in the loft. See Senses & intel.

At a glance ​

  • Three birds: Rock Dove (stealthy, 700 s of level flight at drain 1.0), Seagull (fast, big battery, easy to notice) and Crow (grade 3, never suspicious, night vision and thermal). See Flying.
  • A loft per station: two are configured (Mission Row PD and Sandy Shores Sheriff). Every flight gets a named serial such as MRPD-07 and a logbook. Up to four birds per loft at once.
  • Four tools: camera, directional mic, mark and tactical droppings. Each one adds battery drain. See Senses & intel.
  • A scripted flight: flap to climb, dive, glide, hover, wind, wall bonks, perching on any surface, a link range around the loft and Backspace to fly home. See Flying.
  • Battery and charge points: found by prop model anywhere on the map: power lines (with a balance minigame), transformers, fuse boxes, EV chargers, rooftop solar, street lamps and payphones. Hold Alt to sense them.
  • Intel for np_surveillance: photos as document, plate reads and marks as sighting (a BOLO hit from np_helicam raises it to severity 4), the mic as audio, marked people as case subjects.
  • Fun and counter-play: suspicion, a hawk attack, bread instinct, "Birds Aren't Real" posters, five counter items and a catch minigame. See Fun & counter-play.
  • Server-authoritative: access, case access, distances, cooldowns and what may be filed are checked on the server. Every RPC is rate-limited.

Who uses it ​

Resource What it does with np_spy-pigeon
np_surveillance Required. Cases and case access, the intel stream, subjects, warrants and the ops console
np_admin Permission nodes, the settings page Spy Pigeon, recall and cooldown actions, the audit log, the central theme
np_inventory Registers the five items at runtime; the caught pigeon carries its serial as metadata
np_hud Toasts, and the HUD is hidden while you are a bird
np_phone Photos land in the gallery; the phone is blocked while you fly
np_shops Sells bread crumbs, bird spikes and bird scanners
np_helicam Plate reads are checked against its BOLO list
np_metal-scanner A caught pigeon carries metal: the tiny camera
np_npchandler Required (1.1.0+). Creates the body at the loft (a clone of the player) and the hawk
np_prophandler Required (1.1.0+). Droppings, the placement ghost of bird spikes, an optional coop prop at the loft
np_menu The Grab pigeon option on players
np_crouch-crawl-shoot Stance changes are blocked while you are a bird
np_character Your appearance is saved before the flight and restored afterwards

Only np_surveillance is needed. The full list, both ways, is on Integrations.

Quick example ​

lua
-- server: is this player a pigeon right now, and which flights are in the air?
if exports['np_spy-pigeon']:IsPigeon(src) then
  for _, s in ipairs(exports['np_spy-pigeon']:GetSessions()) do
    print(s.serial, s.callsign, s.bird, s.caseId, s.battery)
  end
end

-- server: bring a bird home (a normal return, short cooldown)
exports['np_spy-pigeon']:EndSession(src, 'recall')

-- server: react to what birds file on any case (this is np_surveillance's own stream)
exports.np_surveillance:onIntel(function(intel)
  if intel.source and intel.source.type == 'bird' then
    print(('%s filed %s on case %s'):format(intel.payload.callsign, intel.kind, intel.caseId))
  end
end)

The resource name needs bracket syntax because of the dash. See Exports & state.

Next steps ​