Skip to content

Installation ​

Requirements ​

  • A recent FiveM server artifact (Lua 5.4) with OneSync turned on (the server reads positions from the player's own ped, birds publish a state bag and the body left at the loft is a networked ped)
  • np_surveillance (and its own requirement, oxmysql). It is a hard dependency: np_spy-pigeon declares it in its fxmanifest.lua, so it has to be installed and started first. Cases, intel, subjects, warrants and the ops console live there, not here
  • np_npchandler 1.1.0+ (the body at the loft, a clone of the player, and the hawk) and np_prophandler 1.1.0+ (droppings, the bird-spikes ghost, loft coop props). Both are hard dependencies in the fxmanifest.lua and have to be started before np_spy-pigeon
  • There is no build step. The UI ships ready to use

Optional, auto-detected at start (each with a fallback, see Integrations & compatibility):

Kind Resources Without it
Framework es_extended (best-tested), qbx_core, qb-core Standalone: license identifiers and no jobs, so only np_admin permission holders can fly
Inventory np_inventory (best-tested), ox_inventory, qb-inventory, the framework's own inventory The counter items cannot be used, found or sold
Staff np_admin Its fallback: console, the np_admin_fallback convar and the ESX groups of np_admin_fallback_groups (Controls & admin)
Appearance np_character, illenium-appearance, fivem-appearance, skinchanger Your clothes and props are restored natively
Phone np_phone Photos do not reach a gallery and the phone is not blocked while you fly
Shop np_shops The counter items are not sold (hand them out some other way)
Interaction ox_target, qb-target, np_menu The E prompt
Voice pma-voice Your own voice is not muted and the directional mic has nothing to boost
Photos screenshot-basic Photos carry no picture, only their metadata
Other np_* siblings np_hud, np_helicam, np_metal-scanner, np_crouch-crawl-shoot A built-in fallback for each, or the feature is simply absent

Steps ​

  1. Put the folder into your resources as np_spy-pigeon. The NUI calls https://np_spy-pigeon/..., item definitions call np_spy-pigeon.useItem and other resources call exports['np_spy-pigeon'], so keep the name.
  2. Start order in server.cfg. np_surveillance, np_prophandler and np_npchandler come before np_spy-pigeon. The framework and the inventory are detected at start:
    cfg
    ensure oxmysql
    ensure es_extended          # or qbx_core / qb-core
    ensure np_inventory         # or ox_inventory / qb-inventory
    ensure np_admin             # optional: staff rights, settings, audit log
    ensure np_hud               # optional siblings, any order
    ensure np_phone
    ensure np_shops
    ensure np_prophandler       # required
    ensure np_npchandler        # required
    ensure np_surveillance      # required, and before np_spy-pigeon
    ensure np_spy-pigeon
  3. Items (below): nothing to do on np_inventory; add them on ox_inventory and the default ESX inventory.
  4. Check the three things you have to own:
    • Config.Lofts: the interaction point, the body seat, the fallback roof and the link range of every loft. The defaults are Mission Row PD and the Sandy Shores Sheriff.
    • Config.Access.jobs: who may fly (police and sheriff from grade 2 by default), or grant the node np_spy-pigeon.fly in np_admin (Controls & admin).
    • Config.Locale: 'en' or 'de'.
  5. Optional:
    • Config.Photos.uploadUrl for screenshot-basic. np_phone's upload target is used first when it runs.
    • Config.Shop for np_shops: the counter location and the items it sells.
    • Config.Posters: where the "Birds Aren't Real" posters hang.
  6. Start the server. Walk to a loft, press E and the Pigeon Loft opens (Flying).

Every option is on Configuration. With np_admin running, most numbers can also be changed live.

Items ​

Five items are used: the four counter items and the caught pigeon (Config.Items, see Fun & counter-play).

Inventory What to do
np_inventory Nothing. np_spy-pigeon registers the items at runtime (RegisterItem), again whenever np_inventory restarts
ox_inventory Paste the block below into ox_inventory/data/items.lua
qb-core / qbx_core / qb-inventory Nothing by hand. The items are registered through AddItem at start
Default ESX inventory Run the SQL below

Used items call np_spy-pigeon.useItem (server = { export = 'np_spy-pigeon.useItem' } on ox). Keep the item names equal to Config.Items; if you rename an item there, rename it in the inventory too.

ox_inventory ​

Add the following to ox_inventory/data/items.lua:

lua
return {
    ['pigeon_bread'] = {
        label = 'Pigeon Bread',
        weight = 100,
        description = 'A handful of crumbs that birds find hard to ignore.',
        stack = true,
        consume = 1,
        server = { export = 'np_spy-pigeon.useItem' }
    },
    ['cell_jammer'] = {
        label = 'Signal Jammer',
        weight = 900,
        description = 'Interferes with nearby surveillance links.',
        stack = false,
        consume = 1,
        server = { export = 'np_spy-pigeon.useItem' }
    },
    ['bird_spikes'] = {
        label = 'Bird Spikes',
        weight = 500,
        description = 'Keep birds off a ledge for a while.',
        stack = true,
        consume = 1,
        server = { export = 'np_spy-pigeon.useItem' }
    },
    ['bird_scanner'] = {
        label = 'Bird Scanner',
        weight = 400,
        description = 'Beeps when a spy bird is close.',
        stack = false,
        consume = 0,
        server = { export = 'np_spy-pigeon.useItem' }
    },
    ['suspicious_pigeon'] = {
        label = 'Suspicious Pigeon',
        weight = 400,
        description = 'A pigeon with a tiny camera hidden on it.',
        stack = false,
        consume = 0,
        server = { export = 'np_spy-pigeon.useItem' }
    }
}

server.export routes every use to np_spy-pigeon. consume = 0 keeps the scanner and the caught pigeon: they are toggled or inspected, not used up.

Default ESX inventory ​

sql
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
    ('pigeon_bread', 'Pigeon bread', 1),
    ('cell_jammer', 'Cell jammer', 1),
    ('bird_spikes', 'Bird spikes', 1),
    ('bird_scanner', 'Bird scanner', 1),
    ('suspicious_pigeon', 'Suspicious pigeon', 1);

The start-up console also prints a reminder when ox_inventory or the ESX inventory needs these definitions.

Check it works ​

  1. Stand at the loft of Mission Row PD (448.6, -973.2, 30.69) with a police job at grade 2 or the node np_spy-pigeon.fly. A prompt appears (or the target option, with ox_target or qb-target).
  2. E opens the Pigeon Loft. Your open np_surveillance cases are listed under np_surveillance case. Pick one, choose a bird and Become pigeon.
  3. Fly, perch on a street lamp or a fuse box and watch the battery in the HUD. F opens the camera.
  4. Open np_surveillance's ops console: what the bird photographed, read or marked is on the case, with the bird's position, on its map and timeline (Senses & intel).

Before you open it ​

These depend on the game build and are not testable outside the game. Check them once on your server:

  • the bird animation dictionaries in Config.Birds[*].anims (a clip that fails to load is skipped: the bird still flies, just without the animation);
  • the charge-point prop model lists in Config.ChargePoints;
  • the spark particle ent_sht_electrical_box on transformers;
  • the bird-spikes model prop_barrier_work05;
  • the poster spots in Config.Posters.list (and that the poster texture draws);
  • the reaction of an NPC driver to a tactical dropping (a hard brake and the horn);
  • voice muting, which covers pma-voice only: with SaltyChat or YACA, proximity voice stays on while you fly.

Troubleshooting ​

Symptom Fix
No loft prompt You hold neither the node np_spy-pigeon.fly nor a job of Config.Access.jobs (or the loft's own jobs) at the required grade; with requireDuty you also have to be on duty. Access is re-read every 60 s and when your job changes
The Crow is locked It needs grade 3 or higher (minGrade) of your framework job, even with the node
The case picker is empty np_surveillance is not started, or you are not a member of an open case. Only your open cases are offered (Config.Surveillance.caseLimit)
Launch answers "You have no access to that case" canAccess in np_surveillance refused it. Ask the case lead to add you
The loft says it is cooling down A lost bird costs Session.lostCooldown (300 s), a normal return Session.returnCooldown (30 s). Staff can reset it (Controls & admin)
"Every bird is out on patrol" Config.Session.maxActivePerLoft birds are already in the air at that loft
Counter items cannot be used on ox / ESX Add the item definitions above
Photos have no picture No upload target: np_phone's, or Config.Photos.uploadUrl with screenshot-basic (Configuration)