Skip to content

Integrations & compatibility ​

np_cctv depends on oxmysql and np_prophandler. The framework and the inventory are bridges; every other np_* sibling has one adapter file under integrations/. The adapter declares the exports it calls and wraps them (pcall), so a missing resource or export degrades one feature instead of breaking a handler.

At start one line per sibling is printed: active, fallback (...) or missing export <name>. Siblings may start or stop later: the status is checked again and printed again. Config.Integrations.<name> = false forces the fallback.

Framework ​

Bridge Resource Identifier Staff groups (Config.AdminGroups)
esx es_extended xPlayer.identifier xPlayer.getGroup(): admin, superadmin
qbx qbx_core citizenid HasPermission: admin, god
qb qb-core citizenid HasPermission: admin, god
standalone none FiveM license none (Config.Admins only)

Auto-detection order (Config.Framework = 'auto'): es_extended, then qbx_core, then qb-core, then standalone. es_extended is the first target. Job networks and terminals read the job name and grade from the framework and require an explicit on-duty flag when using legacy job access; a missing duty flag is treated as off duty. Standalone has no jobs, so job networks are out of reach there (keys and staff still work), and no economy: nothing costs and nothing pays.

Inventory ​

Bridge Resource Items Use Evidence stash
np np_inventory Registered at runtime and again when np_inventory restarts Export useItem Registered through RegisterStash
ox ox_inventory The block in data/items.lua Export useItem; np_cctv answers false to usingItem RegisterStash
qb qb-inventory (and the ps / lj forks) The block in shared/items.lua CreateUseableItem CreateInventory
none none No items Commands None: no USB, no hand-over

Auto-detection order (Config.Inventory = 'auto'): np_inventory, then ox_inventory, then qb-inventory, then none. np_cctv needs from an inventory: unique items with metadata, a use callback and a stash id for evidence. See Items. The np_inventory side is described in np_inventory compatibility.

np_* siblings ​

All are optional and auto-detected, except np_prophandler (below). Config.Integrations.<name> = false forces the fallback.

Sibling With it Without it
np_surveillance Every camera is announced as a source and pinged; footage handed to the police is filed on its case (below) Nothing is announced and nothing is filed
np_inventory Items registered at runtime, unique items with metadata, evidence stashes, a busy flag while placing The ox or qb bridge, else no inventory
np_screens To screen pushes a saved still to the nearest screen (CastToNearestScreen) No push to screens
np_hud Toasts, prompts, progress bars, zone claims np_cctv's own NUI toasts, prompt and progress layer
np_phone Motion alerts as phone banners for the owner Alerts as toasts while the owner is on the server
np_payments The cloud backup fee through its checkout Framework money (cash, then bank); standalone is free
np_menu The option on monitor terminals (cameras and recorders use np_prophandler's options) ox_target, then qb-target, then an own prompt and E
np_discord Staff by Discord role; footage and tamper logs in a cctv channel No Discord staff or logs
np_admin Staff rights by node, the settings page, the audit log, the server theme Config.Admins, framework admin groups, np_discord roles (Commands & staff)
np_character Character names for owners and key lists Framework names
np_banking Robbery evidence of type cctv becomes clips from the cameras around the bank Ignored
np_shops A purchase becomes a register event on the camera next to the buyer; a robbery saves clips Ignored
np_prison The alert level becomes a custom event on every network with feeds = { np_prison = true } Ignored
screenshot-basic Live pictures on the wall and stills with a picture (below) Placeholder tiles, stills without a picture

np_banking, np_shops and np_prison are listened to only: np_cctv calls none of their exports.

np_prophandler ​

A hard dependency at 1.1.0+ (fxmanifest dependencies), not an adapter: no Config.Integrations key, no fallback, np_cctv never creates an object itself.

What How
Cameras and recorders Client-only streamed props: client addLocalProp (ids np_cctv:cam:<id>, np_cctv:rec:<id>, spawnDistance = Config.Props.streamRadius), removeLocalProp, getPropEntity. A moved or re-aimed camera is rebuilt
Options on them An interact list on the prop, one key each (E, G, H, K, X, Y), every option with its own canInteract; each fires np_cctv:client:prop with the option name
Restart Every prop is added again on the client np_prophandler:ready
Placement ghost A local prop: client createLocal (alpha 150, no collision, frozen), getLocalEntity, deleteLocal

np_prophandler deletes all of them when np_cctv stops.

np_surveillance ​

np_surveillance is the investigation tool of the stack: cases, an ops map and an intel stream. np_cctv never needs it. When it runs, np_cctv sends it the following. What an investigator sees on a case is what is filed on that case.

  • A source. At start, and again on every np_surveillance restart, np_cctv registers the source np_cctv (label CCTV, layer cctv).
  • Pings. It pings every camera of sites whose kind is in Config.Share.mapKinds (without a case id), and pings again whenever a camera is placed, changes (except PTZ moves), logs an event or is removed. A ping without a case id is an event inside np_surveillance; it is not drawn on a case by itself.
  • Intel from events. Notable events (after_hours, blinded, tamper, custom, offline) of those sites are sent with addIntel as kind cctv_event, with the camera as the source and its coordinates, but without a case id: np_cctv does not know the case. np_surveillance only stores intel for an existing case, so it is accepted where a case id is given.
  • Hand to police is how footage reaches a case. When a manager hands footage to the police with a case id, np_cctv files a cctv_event intel on that case, whatever the site kind, and puts the USB stick into the case's evidence stash (Footage). Config.Share.intel = false switches the intel off.

Which sites count is Config.Share.mapKinds: shops and other by default; homes and police sites stay private.

lua
Config.Share.mapKinds = { shop = true, other = true, home = false, pd = false }

Player sites are kind other

A site that a player creates by placing a recorder has the kind other, which np_cctv announces and pings by default. Set other = false if player sites should stay out of np_surveillance; footage handed to a case still reaches it.

See np_surveillance's own pages: overview, np_cctv as an intel source and its exports and hooks.

screenshot-basic ​

screenshot-basic is not an np_* resource but np_cctv uses it for pictures: the live tiles on the wall (the selected camera about once a second, the others one after the other) and stills. Without it:

  • the tiles are placeholders with the camera's metadata (heading, field of view, range);
  • a still is saved without a picture, and a still cannot be pushed to a screen;
  • the full view stays live, because the game draws it.

How well it captures a script-camera render is something to look at once in game (Installation).

np_admin in detail ​

  • Nodes and settings. bridge/np_admin.lua is the np_admin lib, byte-identical to np_admin/lib/np_admin.lua. shared/np_admin_settings.lua registers the settings page (Configuration) and the two permission nodes. The config files are also listed with np_admin_config in the manifest, so np_admin shows the settings while np_cctv is stopped.
  • Audit log. Recorder theft and smashing go to np_admin's audit log (category np_cctv). Everything players do on a site (installs, removals, lens work, clips, exports, keys) also goes into np_cctv's own audit table.
  • Theme. The server theme of np_admin is forwarded to the NUI. Config.Theme wins only where it is set.