All products

np_metal-scanner

Security screening for your venues. Walk-through gates, hand wands and an X-ray belt detect metal in np_inventory items and in the native GTA weapons of a player's loadout, so a pistol sets the gate off wherever it lives. Staff place the scanners through np_admin, and the operators decide what happens next.

v0.1.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler · np_prophandler 1.1.0+
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
ESX, qbx, qb, standalone
Dependencies
oxmysql, np_npchandler, np_prophandler 1.1.0+
Database
Tables created on start
Inventory
np_inventory first, then ox_inventory, qb-inventory or the ESX inventory
Payment
np_payments and np_banking when running, or the framework's cash and bank
Optional
np_admin, np_phone, np_hud, np_identification, np_prison, np_payments, np_banking, np_passwords, np_menu, np_shops, np_drugs and more
Languages
English, German
Build
Node to build the NUI once
Gate 2 at the courthouse in alarm: a red lamp and LEDs on both pillars at waist and ankle height, the seven zone bars with the waist at 92, two objects, the strongest side, and the operator verbs Wave through, Secondary, Walk through again and Hold and call backup
Gate 2 at the courthouse in alarm: a red lamp and LEDs on both pillars at waist and ankle height, the seven zone bars with the waist at 92, two objects, the strongest side, and the operator verbs Wave through, Secondary, Walk through again and Hold and call backup

Taken from the NUI in the browser at 1920×1080 with mock data. The scene behind the panels is a placeholder, not a GTA screenshot.

What's in it

The gate says where and how much, never what. Staff decide, and the script records. Every reading, seizure and return is computed on the server.

Gates and wands

  • Items and loadout weapons: np_inventory items with a metal value and the native GTA weapons on the ped, merged into one reading.
  • Walk-through arch or pole with seven body zones, lamps, LEDs and a chime. The operator sees mass per zone and a rough class, never a weapon name.
  • A hand wand you sweep with the mouse: coverage per zone, a rising tone, sensitivity and a battery. Consent as roleplay: comply, refuse or run.

Findings, lockers and evidence

  • A body map with pins and a list sorted by threat. Every finding is tagged GTA loadout or Inventory.
  • Return, hold in a locker with a claim ticket, or seize as evidence. Items come back when the owner leaves the venue.
  • A seizure opens a case with the items moved to an evidence stash, and police on duty are told. Nothing is arrested or confiscated automatically.

Tray and X-ray

  • A divest tray with metal pips on your own items. Declare a weapon or hand it to a locker: declaring is never a crime, hiding is.
  • An X-ray belt with colour modes: organic orange, mixed green, metal blue and impenetrable black. Dense metal gets a box.
  • The operator picks Clear bag or Search bag. A lead pouch hides an item from the gate and shows as an impenetrable mass.

Console, shifts and watchlist

  • A security console: every post with its status, post rules, the live log, lockers in use, evidence cases and stats.
  • Clock in at a post and get paid per interval plus a bonus per screened visitor.
  • Bans and BOLOs per venue. A match is a quiet toast to the operators, never to the visitor.

Venues and placement (np_admin)

  • Venues with rules: weapons allowed with a permit or not, banned classes, lockers and fee, random secondary, silent alarm, schedule, operator jobs.
  • Placement mode with a ghost prop and a trigger box. Saved scanners sync without a restart.
  • Rights nodes, settings and the audit log live in np_admin. No ACE.

Ground detector

  • Beach and field detecting: a target ID scale with notches, pinpointing, a dig timing game, a finds journal and a buyer.
  • Storms wash up better finds. A detecting permit can be required.
  • Police sweeps for thrown guns and shell casings, which become evidence items.

Checkpoint phone app

  • For security and police on duty: your shift, cases, the watchlist and stats, plus a Dynamic Island alert for a gate alarm at your venue.
  • For everyone: a Permits app with your cards, permits, the venues screened tonight with their rules, and your locker tickets.

Integrations

  • np_identification for weapon licences and security permits, np_payments and np_banking for fees, fines and wages, np_prison for visitation gates.
  • np_passwords lets a gate be hacked, np_drugs keeps organic items non-metallic. Guard NPCs come from np_npchandler.
  • Exports, hooks and server events for dispatch, an MDT or your own scripts.

A closer look

Everything with metal counts, wherever it lives

A pistol in the GTA loadout and a pistol item in np_inventory set a gate off the same way.

SourceHow it is read
GTA loadout weaponsThe server reads the framework loadout (ESX getLoadout) and the weapon in hand. The target's client also reports the weapons its ped has, which catches weapons other scripts gave out. Each vanilla weapon has a metal value by group, and ammo adds a little
Inventory itemsAn optional metal field on the item (mass, class, zone), with defaults from the category: weapons are firearms, phones, keys and coins are everyday metal. A drawn item weapon is counted once
BodyBelt buckles, steel-toe boots and jewellery as small noise sources, and worn np_clothing pieces you list
SmugglingMass 0 is invisible: a ceramic knife, an optional polymer pistol. A lead pouch hides the largest metal item from the gate and wand and shows on the X-ray
TamperingIf the server knows about a weapon and the client report denies it, the player is flagged and the log gets an entry

Seven body zones (head, shoulders, chest, waist, thighs, knees, ankles). A zone signal is the mass times a class factor times the scanner's sensitivity, plus a little noise, against the venue's threshold. Where an item sits on the body stays the same for a player for 30 minutes, so gate, wand and pat-down agree. Cash, drugs and ceramic blades never show: a full search is a separate action.

Walk-through gate and pole

An arch prop with a separate trigger box. Crossing its middle plane on foot runs a pass.

Gate 2 in alarm with a red lamp, zone LEDs on the pillars and the operator panel: zone bars, two objects, strongest side R, Wave through and Secondary
  • Lamp, LEDs and chime: green or red above the arch, an LED per zone on both pillars, and a chime nearby. Every alarm has a text as well.
  • Operator verbs: wave through (E), secondary with the wand (G), walk through again (R), hold and call backup (H).
  • Random secondary: 1 in 20 clear visitors by default are wanded anyway, so a clear gate does not guarantee a pass.
  • Unstaffed gates alarm and notify on-duty police. A guard NPC from np_npchandler can stand there.
  • Jobs listed as bypass, such as police on duty, never alarm, and the pass is logged. A gate can be locked with an np_passwords PIN and hacked.

Hand wand

The metal_wand item for security, police and guards, or the wand kit at a post.

Wand HUD: coverage of 64 percent with front and back maps, a strong signal at waist right, firearm-sized, about 0.9 kg, sensitivity Med and the battery
  • The wand is a cursor on the body: hold the left mouse button and move over the target. Coverage fills where you swept, and sweeping too fast covers nothing.
  • Tone first: beeps that others nearby hear, faster with a stronger signal. The HUD adds signal bars, a class guess and the weight.
  • Front and back: ask the target to turn. A scan is complete when both sides are covered.
  • Consent: the target answers comply, refuse or run, with a raised-arms or crossed-arms animation. A refusal is information, not an error.
  • Pat down here: a search limited to the items of one zone, not the whole inventory.

Findings, lockers and cases

The operator decides per item. Every decision goes to the venue log and the np_admin audit log.

Findings for Mia Rodriguez: a Combat Pistol from the GTA loadout, a box cutter and lockpicks from the inventory, the weapon permit, the serial and the venue rule, and the three actions
  • Body map and list: weapons, suspicious items and everyday metal (folded, below the venue threshold), each with its zone and side.
  • Context: the permit from np_identification, the serial from the item's metadata (none for a loadout weapon) and the venue rule.
  • Hold in a locker: a claim ticket, an optional fee, and the items come back when the owner leaves the venue. Unclaimed lockers expire into a lost-and-found stash.
  • Seize as evidence: a loadout weapon is removed on the server and stored with its ammo and components, so returning it gives the same weapon back.
  • Honest blind spots: non-metal items stay hidden until the operator starts a full search.
An evidence case with the body map, the seized items and its actions
  • Cases get a reference such as C-0042, the items in an evidence inventory (np_inventory evidence:<case>, a stash elsewhere) and a hand-off to the police.
  • Optional extras: license points on a seizure through np_identification, an invoice through np_payments, and gang attention through np_gangs.

Divest tray and X-ray belt

The visitor's side and the operator's side of the same step.

The divest tray with items on you, three items in the tray, a weapon with a CCW permit not accepted at this venue, and Locker and Declare
  • Divest tray: drag what you do not want to set the gate off into a tray of six stacks. It goes through the X-ray and comes back after a clear pass.
  • Metal pips from 0 to 3 on your own items show what will beep. A server can switch them off.
  • Declare or hand over: a weapon with a permit the venue accepts may stay, otherwise it goes to a locker. Leaving the queue is allowed, and the staff see you go.
The X-ray belt showing a bag with a boxed dense metal firearm profile and an impenetrable mass, and the Colour, Mono, Organic and Metal modes
  • Colour X-ray: organic orange, mixed green, metal blue, impenetrable black, with a silhouette per item type. Switch to mono, organic only or metal only.
  • Dense metal and impenetrable masses get a box automatically. The operator decides Clear bag (C) or Search bag (S).

Security console, shifts and the watchlist

/securityconsole or a key you bind opens it. Operators of a venue see their posts.

The security console of Maze Bank Arena with five posts, post rules for random secondary, silent alarm and gate chime, the X-ray bag, the live log and lockers and evidence
  • Posts and stats: status per gate, people screened, alarm rate, weapons seized and declared, and the average wait.
  • Live log of alarms, seizures, declarations, watchlist matches, people leaving the queue and calibrations, with an export.
  • Shifts: clock in at a post, $150 per 15 minutes and $3 per screened visitor by default, paid from the security society account when np_banking runs. A shift can be required before operators count as on duty.
  • Watchlist: bans and BOLOs per venue. Managers set permanent bans, and a match is a quiet toast to the operators only.

Venues and placement

Staff place scanners in game and set the rules of each venue. The database is the truth after the first start.

The placement panel: venue, scanner type (arch gate, pole, X-ray belt, wand kit, lockers), sensitivity 70, everyday threshold 12, loadout and inventory scanning switches, nearby scanners and the position and zone box
Venue ruleWhat it sets
WeaponsNone, allowed with a permit, or allowed
Banned classesFirearm and blade by default, never allowed in, permit or not
LockersOn or off, with a fee
Random secondary1 in N clear visitors
Silent alarm, chimeQuiet alarm to staff and police, or a chime in the hall
Threshold, sensitivityDefaults for every scanner of the venue
ScheduleDays and hours it is screened
Bypass, operatorsJobs that are logged but never alarm, and jobs and grades that run the posts

Scanner types: arch gate, pole, X-ray belt, wand kit and locker bank. Default venues are written on the first start only. Open placement with /scannerplace or from the np_admin tools.

Ground detector

The same metal model outdoors: treasure hunting on the beaches and evidence sweeps for the police.

The ground detector HUD with a target ID of 74, the iron to silver scale, depth and the pinpointed spot, and the area, collection and permit chips
  • Target ID scale: swing slowly, notch out iron and foil, pinpoint with a pinpointer, then dig with a trowel and tap E in time.
  • Areas: Vespucci, Del Perro, Paleto, Sandy Shores, Chumash and the Alamo Sea, with eleven finds from pull tabs to a rare relic. Rain and thunder raise the odds.
  • Detecting permit: optional, checked with np_identification. Police are exempt.
  • A buyer pays for finds, and a journal tracks the collection.
  • Evidence sweeps: shell casings and thrown weapons stay in the world for a while and can be found, then become evidence items.
The finds journal with a silver ring and an old coin

With np_environmental running, finds are likelier near a live storm-debris scene.

np_phone apps

With np_phone running, np_metal-scanner adds two apps.

Checkpoint: the shift with people scanned, alarms and pay, recent cases, the venue watchlist, and the Permits app with a firearm permit and nearby venues
  • Checkpoint (security, police and sheriff on duty): shift, cases, watchlist and stats. A gate alarm at your venue shows in the Dynamic Island.
  • Permits (everyone): your cards, your permits from np_identification, the venues screened tonight with their rule (locker, no entry, allowed) and your locker tickets.

Without np_phone, everything runs in the game UI and toasts.

Set it up

Compatibility

Every bridge is detected at start. np_npchandler and np_prophandler 1.1.0+ are required. Every other NP DEV sibling is optional and has a built-in fallback. No ACE is used anywhere.

KindSupported
Frameworkes_extended first (it reads the ESX loadout), then qbx_core, qb-core or standalone
Inventorynp_inventory first (items registered on start), then ox_inventory, qb-inventory or the ESX inventory, with item lists in the docs
Permitsnp_identification: weapon licence, detecting permit and security licence. Without it, permits are denied unless you allow them
Moneynp_payments for locker fees and fines, np_banking for the security society and wages, or the framework's cash and bank
UInp_hud for toasts, prompts and progress, np_phone for the apps, np_menu, ox_target or qb-target for options on players and props
Staffnp_admin permission nodes, settings, audit log and server theme, or the framework's admin groups
Othersnp_prison, np_passwords, np_shops, np_drugs, np_clothing, np_gangs, np_screens, np_discord and np_environmental

Installation

oxmysql, np_npchandler and np_prophandler 1.1.0+ are the hard dependencies. The tables are created on start.

  1. Put the resource in resources/ as np_metal-scanner.
  2. Build the NUI once (web/dist is not in the repository):
    cd web && npm install && npm run build
  3. Start it after oxmysql, your framework, your inventory and the np_* resources you run:
    ensure oxmysql
    ensure es_extended     # or qbx_core / qb-core (optional)
    ensure np_inventory    # or ox_inventory / qb-inventory (optional)
    ensure np_admin        # optional: permissions, settings, theme
    ensure np_npchandler   # required
    ensure np_prophandler  # required, 1.1.0+
    ensure np_metal-scanner
  4. Items: nothing to do with np_inventory. On ox_inventory or qb-inventory, paste the item lists from install/.
  5. Staff: with np_admin, grant np_metal-scanner.admin, .place, .configure, .logs and .override. Without it, framework admin groups pass every node.
  6. With np_identification, import the three types in install/np_identification_typedefs.json. On start the console prints one line per sibling and a ready line.

For your own scripts

Server exports to read a player's metal profile, register venues and cases, hooks that can veto a scan, a seizure or a locker, and server events for dispatch or an MDT.

-- a server-side reading, e.g. for a custom checkpoint
local reading = exports['np_metal-scanner']:ScanPlayer(target, { venue = 'courthouse' })

-- is this spot screened tonight?
local screened = exports['np_metal-scanner']:IsVenueScreened(coords)

-- no seizures while the visitor is a police officer
exports['np_metal-scanner']:registerHook('beforeSeize', function(ctx)
  if isOfficer(ctx.target) then return false, 'vetoed' end
end)

-- tell dispatch about every alarm
AddEventHandler('np_metal-scanner:alarm', function(data)
  -- data.target, data.scanner, data.venue, data.zones, data.class
end)

Questions

Does it detect weapons that are not inventory items?

Yes. Besides np_inventory items, it reads the native GTA weapons of a player's loadout: the ESX loadout, the weapon in hand and what the player's client reports. Both end up in one reading, and each finding is tagged GTA loadout or Inventory.

Does the gate tell the operator what a player carries?

No. The gate shows where and how much, with a rough class such as firearm-sized. Item names appear only after a pat-down or a search, and non-metal items never show without a full search.

Are players arrested or searched automatically?

No. Operators choose to return, hold in a locker or seize an item, and every choice is logged. Seizing creates a case, and police on duty are told.

Do I need np_inventory?

No, but it is the first choice: it registers the items itself. ox_inventory, qb-inventory and the ESX inventory work with the item lists in the docs.

Does it need np_admin?

No. With np_admin you get the permission nodes, the settings page, the audit log and the server theme. Without it, the framework's admin groups can place scanners and change venues. ACE is never used.

Can players smuggle things through?

That is part of it. Ceramic items have no metal, a lead pouch hides one item from the gate and wand and shows as a black mass on the X-ray. Some false alarms and an uncalibrated gate add realism, and tampering is logged.

Is it in German?

English and German, set with Config.Locale.

Works well with

Ensure it, place a gate, open the venue.

Installation, every config key and every export are in the docs.

Install np_metal-scanner