Gates & poles ​
A gate is a walk-through arch, a pole a slimmer scanner for queues and doors. Both run the same pass. The arch
is an invisible oriented trigger box, not an obstacle (Config.Props.passThrough), so players walk through it. The
prop is only the look.

A pass ​
- The client reports a pass. Walking through the middle plane of the trigger box (
Config.ScannerDefaults[type].box, along the heading, in the directionConfig.Gate.directionallows) sendsgate.pass. The client never reports the same gate twice withinclientDebounceMs. - The server decides whether it counts. The player must stand within
passDistance(3 m) of the scanner, the per-gate cooldown must be over, the scanner must be enabled and not offline, and the venue must be open (inside its schedule, otherwise the pass is ignored). - Bypass jobs. A player of the venue's
bypassJobswho is on duty gets a green lamp, a log entry and no alarm. - The reading.
beforeScanhooks may veto. Then the server builds the visitor's metal profile and the reading for that gate (see below), and the watchlist is checked. - Lamp, LEDs and chime. Everyone within
lightRangesees the lamp above the arch turn green or red and the zone LEDs on the pillars light up; the chime plays withinchimeRange. Operators see the truth, even at a silent alarm, where the world sees a green lamp. - The visitor is told. Walk through (clear), or Wait for the operator when the gate is staffed and the alarm is
not silent. While a decision is pending the visitor carries the state bag
npmsHold. - Random secondary. A clear visitor is sent to secondary anyway with a 1 in
randomSecondarychance (the venue's rule, 20 by default, 0 = off). - Everything is logged (
clear,alarm,random,bypass), counted as passes today, and fires the eventsscannedand, on an alarm,alarm, then theafterScanhook.
A gate returns to idle after clearSeconds (4) when clear, or alarmSeconds (45) when an alarm stays undecided (the
session stays open).
The reading ​
The profile lists every item with metal: GTA loadout weapons (ESX loadout, the weapon in hand, the client report), inventory items and body metal. Each item has a mass, a class and a zone. For each of the seven zones the signal is
sum of (mass × class factor × sensitivity / 50) + noise + drift, clamped to 0 to 100
An alarm is a zone at or above the threshold. Everyday items whose signal is below the threshold are ignored. The strongest item in an alarm zone gives the reading's class and side (left, right, centre).
- Sensitivity, threshold, noise, drift come from
Config.Detection, overridden by the venue's rules, overridden by the scanner's own settings. The courthouse runs sensitivity 90 and threshold 4, a nightclub pole 35 and 30. - Zones and sides are stable. They are seeded from the character and a salt that lasts
saltMinutes, so walking through twice, a wand sweep and a pat-down all agree. - Shielding. An item with
shield(the lead pouch) hides the largest unshielded item from the gate. See Items. - Tamper. If the server knows about a weapon and the client denies it, the profile is flagged: the operator panel
carries the flag, a
tamperlog entry is written (once a minute per kind and player) and thetamperevent fires. - The gate says where and how much, never what. The operator panel gets zone values, a class, a side and a rough mass. Names, labels and counts only travel after a pat-down.
The operator panel ​
Operators of the venue who are on duty and within operatorRange (25 m) get the panel. F6 opens the newest undecided
alarm in range. It shows the seven zone bars, the number of objects, the strongest side, and the pass count of the day.

| Key | Verb | What |
|---|---|---|
E |
Wave through | Closes the session, the lamp goes idle, the visitor is told they may pass |
G |
Secondary screening | Starts a hand wand run on the visitor, in the same session. The visitor keeps waiting |
R |
Walk through again | Closes the session, clears the pass cooldown and tells the visitor to empty their pockets and try again |
H |
Hold & call backup | Keeps the visitor on hold, raises the alarm lamp again, tells the on-duty police and sends the alarm event |
An operator must be near the gate (decideDistance, 15 m), and so must the visitor. The visitor cannot decide for
themselves. Every verb is logged with the operator.

Unstaffed gates ​
When no on-duty operator is in range on an alarm:
- the venue's staff who are on duty anywhere get a toast;
- if there are none,
Config.Gate.unstaffedFallback('police') tells the on-duty police;'none'tells nobody; Config.Gate.holdUnstaffeddecides whether the visitor is asked to wait anyway;- a guard NPC (np_npchandler) stands at a gate with nobody on duty (
Config.Siblings.npc).
Calibration and drift ​
Gates drift: every hour since the last calibration adds Config.Calibration.driftPerHour (1.5) up to maxDrift (30)
to the scanner's drift, which feeds the reading as extra positive noise. Staff recalibrate from the
console by walking a test piece through for eight seconds.
Hacking a gate ​
With np_passwords each gate and pole gets one PIN lock. A successful crack takes the scanner
offline (reason hacked) for Config.Siblings.passwords.minutes (3), logs a tamper and shows the post as offline in
the console. An offline scanner reports no passes.
Prison visitation ​
With np_prison running, an np_prison:jailed event closes the sessions of the jailed player. If
Config.Siblings.prison.gateOnAlert is on, the visitation venue refuses passes (a beforeScan veto) while the
facility's alert level is siren or manhunt.