Configuration ​
config.lua holds every setting. It is commented and shared by client and server, so nothing secret should sit in
it: put the photo upload URL and the log webhook into np_admin's secret fields instead
(below). Every number is a starting value; tune it for your server.
With np_admin running, about fifty of the settings are also editable in game on its Resource settings page under Spy Pigeon (see Editable in np_admin). np_admin stores only the overrides; the config file stays the default.
| Table | What |
|---|---|
Config.Debug, Config.Locale |
Debug log, the language ('en' or 'de') |
Config.Access |
Who may fly: nodes, jobs, duty |
Config.Lofts, Config.Interaction |
Where you become a pigeon and how the entrance works |
Config.Session |
Limits per loft, cooldowns, the body left behind |
Config.Birds, Config.BirdOrder, Config.Callsigns |
The three birds, their order, the callsigns |
Config.Flight |
Altitude, speeds, wind, the chase camera, the controls |
Config.Battery |
Drain per mode, loadout weight, warnings, battery sense |
Config.ChargePoints, Config.ChargeSearchRadius, Config.ChargeSpots |
Where and how fast a bird recharges |
Config.Tools |
Camera, mic, mark, tactical droppings |
Config.Events |
Suspicion, hawk, bread instinct, soft landing, firmware |
Config.Items, Config.Counter, Config.Shop |
The counter items and where they are sold |
Config.Surveillance |
The np_surveillance bridge |
Config.Photos, Config.Posters |
Photo upload, the world posters |
Config.Notify, Config.Logs, Config.Integrations |
Notifications, the webhook, optional siblings |
General ​
| Option | Default | Description |
|---|---|---|
Config.Debug |
false |
Debug log (integration failures, np_surveillance registration) |
Config.Locale |
'en' |
'en' or 'de' (locales/*.lua). Also used by the world posters |
Access ​
A player may fly when they hold the node or match one of the jobs. See Controls & admin.
| Option | Default | Description |
|---|---|---|
Config.Access.flyNode |
'np_spy-pigeon.fly' |
The np_admin node that lets a player open lofts and fly |
Config.Access.adminNode |
'np_spy-pigeon.admin' |
The node of the staff actions (recall, recall all, reset cooldown) |
Config.Access.jobs |
police grade 2, sheriff grade 2 |
{ { name = 'police', grade = 2 }, ... }: framework jobs with a minimum grade. es_extended first, then qbx_core and qb-core |
Config.Access.requireDuty |
false |
Jobs only count on duty (qb / qbx onduty; an ESX job named with an off prefix counts as off duty) |
Lofts ​
Config.Lofts is a list. Every entry is one loft.
| Key | Meaning |
|---|---|
id |
Unique id. It is the start of the bird serials (mrpd gives MRPD-07) |
label, unit |
Name and unit shown in the Pigeon Loft |
coords |
The interaction point (vector3). Also the centre of the link range |
body |
vector4: where your body sits while you fly (the last number is the heading) |
roof |
vector4: the launch point used when the automatic roof detection finds nothing |
linkRange |
Metres around coords the bird keeps its link to the loft |
jobs |
nil uses Config.Access.jobs; or a per-loft list in the same shape |
prop, propRotation |
Optional coop prop (for example 'prop_cs_cardbox_01'): a streamed np_prophandler prop whose option opens the loft |
launch |
Extra launch points: { label, sub, icon, coords } (a vector4) |
Defaults: Mission Row PD (mrpd, link range 2500, one extra launch point: the helipad in Pillbox Hill) and
Sandy Shores Sheriff (sandy, link range 3000).
Interaction ​
| Option | Default | Description |
|---|---|---|
Config.Interaction.key |
38 (E) |
The prompt key |
Config.Interaction.distance |
1.6 |
Metres from coords at which the prompt or the target zone works |
Config.Interaction.marker |
true |
Draw a marker at the prompt |
Config.Interaction.method |
'auto' |
'auto' uses ox_target or qb-target when one runs, else the E prompt. Also 'ox_target' and 'qb-target' |
Session ​
| Option | Default | Description |
|---|---|---|
Config.Session.maxActivePerLoft |
4 |
Birds in the air per loft at once |
Config.Session.lostCooldown |
300 |
Seconds before the next flight after a lost bird (caught, body hurt, hard landing, health 0, disconnect) |
Config.Session.returnCooldown |
30 |
Seconds after a normal return |
Config.Session.bodyScenario |
'PROP_HUMAN_SEAT_CHAIR_MP_PLAYER' |
What your body does at the loft |
Config.Session.bodyBreaksLink |
true |
Damage to your body ends the flight |
Config.Session.muteVoice |
true |
Your own proximity voice is muted while you are a bird (pma-voice) |
Config.Session.autoRoof |
true |
Offer a launch from the roof of the building you stand in |
Config.Session.telemetryInterval |
2000 |
Milliseconds between status updates from client to server |
Birds ​
Config.Birds[<key>]. The order in the loft is Config.BirdOrder (pigeon, seagull, crow).
| Key | Meaning |
|---|---|
label, icon, tint |
Name and look in the loft |
model |
The ped model |
battery |
Seconds of level flight at drain 1.0 (Flying) |
speed, climb |
Cruise speed in m/s, climb speed in m/s while flapping |
stealth |
0..1. Suspicion grows by 1 - stealth |
nightVision, thermal |
The camera modes the bird adds |
minGrade |
A minimum framework job grade on top of Config.Access |
anims |
{ dict, fly, glide }. A clip that fails to load is skipped |
| Bird | model |
battery |
speed |
climb |
stealth |
Extra |
|---|---|---|---|---|---|---|
pigeon (Rock Dove) |
a_c_pigeon |
700 |
14.0 |
4.5 |
0.85 |
|
seagull |
a_c_seagull |
900 |
18.0 |
5.0 |
0.3 |
|
crow |
a_c_crow |
600 |
13.0 |
4.0 |
1.0 |
minGrade = 3, night vision, thermal |
Config.Callsigns is the list of names (Gary, Steven, Kevin, Brenda, Bernd, Dolores, Mike, Tina,
Sergio, Pam). A serial is <LOFT>-<nn>; the callsign follows the serial number.
Flight ​
| Option | Default | Description |
|---|---|---|
Config.Flight.maxAltitude |
260.0 |
Metres above ground. The bird stops climbing there |
Config.Flight.minHoverDrain |
true |
Reserved. It has no effect in this version |
Config.Flight.diveSpeed |
32.0 |
Speed in m/s while diving |
Config.Flight.glideSink |
1.6 |
Sink rate in m/s while gliding |
Config.Flight.turnRate |
110.0 |
Degrees per second |
Config.Flight.wind |
{ enabled = true, maxSpeed = 9.0 } |
Wind pushes the bird; headwind adds drain |
Config.Flight.bonkDamage |
15 |
Percent of bird health lost when flying into a wall at speed |
Config.Flight.camera |
{ distance = 2.6, height = 0.6, fov = 60.0 } |
The chase camera |
Config.Flight.controls |
see Controls & admin | Control ids of flap, dive, perch, camera, coo, home, tools 1 to 4 and battery sense |
Battery ​
Rates are multipliers on 100 / bird.battery percent per second.
| Option | Default | Description |
|---|---|---|
Config.Battery.baseDrain |
1.0 |
Multiplier on every mode |
Config.Battery.flapDrain |
1.6 |
While flapping |
Config.Battery.hoverDrain |
1.2 |
Holding position, or looking through the camera in the air |
Config.Battery.glideDrain |
0.25 |
While gliding (a dive uses it too) |
Config.Battery.perchDrain |
0.05 |
While perched |
Config.Battery.headwindDrain |
0.6 |
Extra at full headwind |
Config.Battery.loadoutWeight |
camera 0.03, mic 0.04, mark 0.02, dropping 0.01 |
Added to the multiplier per item (a dropping counts for every one you carry) |
Config.Battery.warnAt / lowAt |
25 / 10 |
Percent at which the warnings come |
Config.Battery.senseRadius |
150.0 |
Metres in which battery sense marks charge points |
Charge points ​
Config.ChargePoints[<kind>] is found by prop model near a perched bird. Hand-placed spots go in
Config.ChargeSpots ({ kind = 'evcharger', coords = vector3(...), radius = 3.0 }).
| Option | Default | Description |
|---|---|---|
Config.ChargeSearchRadius |
6.0 |
Metres around the perched bird in which a charge point is used |
Config.ChargeSpots |
{} |
Hand-placed charge points |
| Kind | Rate (%/s) | Flags |
|---|---|---|
powerline |
4.0 |
rainRisk = 0.04 (chance per second of a zap while it rains), balance (minigame) |
transformer |
12.5 |
cooldown = 600, sparks |
fusebox |
2.0 |
|
solar |
1.0 |
daytime (06:00 to 20:00 game time) |
streetlight |
0.5 |
night (20:00 to 06:00) |
payphone |
1.0 |
ring |
evcharger |
2.5 |
Model prop_elecbox_10_cr; add more through ChargeSpots |
Every kind also carries label, icon, tint and its models list. The behaviour of each is on
Flying.
Tools ​
| Option | Default | Description |
|---|---|---|
Config.Tools.camera |
enabled = true, minFov = 6.0, maxFov = 60.0, shots = 24, drain = 0.15, plateRange = 60.0 |
Zoom range in degrees of field of view, photos per flight, extra drain while the camera is open, how far a plate lock-on reaches (metres) |
Config.Tools.mic |
enabled = true, cone = 35.0, range = 40.0, drain = 0.4, boost = 1.0 |
Cone width in degrees, range in metres, extra drain, the volume override for voices in the cone |
Config.Tools.mark |
enabled = true, range = 50.0 |
Metres in which a person or vehicle can be marked |
Config.Tools.dropping |
enabled = true, count = 5 |
Tactical droppings per flight |
Config.Tools.loadout |
{ 'camera', 'mic', 'mark', 'dropping' } |
The tools offered in the loft, in order |
Events ​
| Option | Default | Description |
|---|---|---|
Config.Events.suspicion |
enabled = true, radius = 25.0, gainPerSec = 6.0, decayPerSec = 4.0, hintCooldown = 120 |
Players within radius who can see the bird build suspicion. The hint repeats at most every hintCooldown seconds per pair |
Config.Events.hawk |
enabled = true, minAltitude = 160.0, chancePerMin = 0.25, batteryHit = 15, dodgeWindow = 2.5 |
A hawk attack above minAltitude. A missed dodge costs batteryHit percent battery |
Config.Events.bread |
enabled = true, radius = 30.0, pull = 1.5, resistDrain = 0.8, duration = 90 |
Thrown bread pulls birds in; resisting adds drain |
Config.Events.glide.softLandingSpeed |
6.0 |
Impact speed (m/s) under which a landing on an empty battery is soft |
Config.Events.firmware |
enabled = true, chance = 0.08 |
Chance per charge that a PigeonOS update runs |
Items, counter-play and shop ​
Items ​
| Option | Default |
|---|---|
Config.Items |
bread = 'pigeon_bread', jammer = 'cell_jammer', spikes = 'bird_spikes', scanner = 'bird_scanner', caught = 'suspicious_pigeon' |
These are the names as registered in the inventory (Installation → Items).
Counter ​
| Option | Default | Description |
|---|---|---|
Config.Counter.jammer |
radius = 40.0, duration = 300, strength = 0.85 |
The jammer follows its carrier for duration seconds |
Config.Counter.spikes |
radius = 6.0, duration = 3600, max = 3, model = 'prop_barrier_work05' |
Per player, at most max spikes at once |
Config.Counter.scanner |
range = 60.0, interval = 1500 |
Beep range in metres, milliseconds between checks |
Config.Counter.catch |
distance = 1.6, struggleTime = 4.0, mashTarget = 18 |
Reach of a grab, the struggle time in seconds, how many Space presses break free |
Shop ​
| Option | Default | Description |
|---|---|---|
Config.Shop.enabled |
true |
Register the shop with np_shops |
Config.Shop.locations |
{ vector3(372.6, 326.3, 103.56) } |
The np_shops counter(s) |
Config.Shop.items |
pigeon_bread 5, bird_spikes 120, bird_scanner 650 |
{ name, price } rows. The signal jammer is not sold by default |
np_surveillance ​
| Option | Default | Description |
|---|---|---|
Config.Surveillance.pingInterval |
3 |
Seconds between the pings of a flying bird to np_surveillance (1 to 30 in np_admin) |
Config.Surveillance.caseLimit |
12 |
Open cases offered in the loft (1 to 50 in np_admin) |
See Integrations → np_surveillance.
Photos ​
| Option | Default | Description |
|---|---|---|
Config.Photos.upload |
'auto' |
'auto': np_phone's upload target, else uploadUrl. 'screenshot-basic': uploadUrl only. 'none': photos carry no picture |
Config.Photos.uploadUrl |
'' |
A secret: for example a fivemanage or Discord webhook URL for screenshot-basic. Only https URLs are accepted |
Posters ​
| Option | Default | Description |
|---|---|---|
Config.Posters.enabled |
true |
Draw the "Birds Aren't Real" posters. Changing it needs a reload |
Config.Posters.drawDistance |
30.0 |
Metres within which a poster is drawn |
Config.Posters.list |
Legion Square, Vespucci beach, Vinewood Blvd | { coords, heading, width, height } per poster |
Notify ​
| Option | Default | Description |
|---|---|---|
Config.Notify.provider |
'auto' |
'auto' (np_hud, then ox_lib, then the built-in toasts), 'np_hud', 'ox_lib', 'nui'. 'native' posts to the GTA feed. A provider that is not started falls back to the built-in toasts |
Logs ​
| Option | Default | Description |
|---|---|---|
Config.Logs.webhook |
'' |
A secret. Discord webhook used only when np_admin's audit log is not available (Controls & admin) |
Integrations ​
| Option | Default | Description |
|---|---|---|
Config.Integrations.<name> |
true for all |
false switches one sibling off; anything else means "use it when it runs". The names are on Integrations |
Editable in np_admin ​
np_spy-pigeon registers 52 settings with np_admin's Resource settings (icon dove, orange), in these categories. Settings marked live apply at once, the rest are noted.
| Category | Keys |
|---|---|
| General | Debug, Notify.provider, Posters.enabled (reload), Locale (restart) |
| Access | Access.requireDuty, Access.jobs (JSON) |
| Session | Session.lostCooldown, returnCooldown, maxActivePerLoft, bodyBreaksLink, muteVoice, autoRoof |
| Flight | Flight.maxAltitude, diveSpeed, glideSink, wind.enabled, wind.maxSpeed |
| Battery | Battery.baseDrain, flapDrain, hoverDrain, glideDrain, perchDrain, headwindDrain, warnAt, lowAt |
| Charging | ChargeSearchRadius, ChargePoints.<kind>.rate for powerline, transformer, fusebox, solar, streetlight, payphone, evcharger |
| Tools | Tools.camera.enabled, mic.enabled, mark.enabled, dropping.enabled |
| Events | Events.suspicion.enabled, hawk.enabled, bread.enabled, firmware.enabled |
| Counter | Counter.jammer.radius, jammer.duration, spikes.radius, spikes.duration, scanner.range, catch.distance |
| Photos | Photos.upload, Photos.uploadUrl (secret) |
| np_surveillance | Surveillance.pingInterval (Live map ping), Surveillance.caseLimit (Cases offered in the loft) |
| Logs | Logs.webhook (secret) |
Lofts, birds, charge point models, tool numbers other than the switches, Config.Items, Config.Shop and the poster
spots stay in config.lua.