np_cctv
Security cameras that live in the world. Shops, police stations and homes put cameras up, wire them to a recorder prop and watch a live monitor at a terminal or on a laptop. Cameras keep a rolling log of what happened in front of them, and the footage can be handed to the police. With np_surveillance every camera is an intel source on the ops map.
- Version
- 0.1.0
- Frameworks
- ESX first, qbx, qb, standalone
- Dependencies
- oxmysql, np_prophandler 1.1.0+
- Database
- Tables created on start
- Inventory
- np_inventory first, then ox_inventory, qb-inventory or none (staff place gear with commands)
- Live pictures
- screenshot-basic (optional). Without it the tiles are placeholders
- Investigations
- np_surveillance (optional): cameras as intel sources, footage handed to a case
- Optional
- np_screens, np_hud, np_phone, np_shops, np_prison, np_admin and more
- Languages
- English, German
- Build
- NUI ships prebuilt in releases, Node to build it from source

Rendered from the NUI in the browser at 1920×1080 with mock data over a game scene. Live pictures come from screenshot-basic in game.
What's in it
Cameras only show the scene in front of them: no facial recognition, no plate reading, no "enhance", no drones. What happened is a log, and the owner decides who sees it.
Install
- Camera items (fixed, PTZ, dome, doorbell, and more through
registerCameraType) and a recorder item that keeps 48 hours or a week. - A placement preview with the view cone and a coverage estimate. Aim, rename, move or remove a camera, and wire it to a recorder.
- Limits per site and per player. Props are local objects near the player, through np_prophandler. Their options show as an np_hud prompt with one key each (E, G, H, K, X, Y), or on ox_target or qb-target.
Monitor
- A camera grid, a big view, day and IR, and a PTZ pad with a patrol sweep. A full camera view fills the screen.
- A 24 hour timeline with motion and event markers, an event feed and recorder health.
- Keys for friends and job networks (police, shop chains, prison) by grade.
Events and alerts
- Each camera logs motion, after-hours motion, offline, blinded, tampering and a register opening.
- Motion comes from the view cone (PTZ aware) and after-hours from the site's opening hours. Events merge instead of flooding.
- Owner alerts through np_phone.
Footage
- Clips (a window of the event log) and stills (with screenshot-basic).
- USB sticks readable by whoever holds them, a hand-over to a case, and a still pushed to a screen through np_screens.
- A cloud backup, so footage survives a stolen recorder.
Counterplay
- Cover a lens: it takes time, has a chance, and shows as blinded on the monitor until somebody cleans it.
- Carry, steal or smash a recorder. The footage that was not backed up goes with it.
- Every one of these is a logged event.
With np_surveillance
- Every camera is an intel source on the ops map, and notable events become intel.
- Footage handed to a case goes into the evidence stash and files intel on that case.
- Optional: np_cctv runs on its own, and np_surveillance never depends on it.
Honest footage
- Footage is an event log plus clips and stills, not video. Playback never replays the scene.
- Live pictures need screenshot-basic. Without it the tiles are placeholders with the camera's metadata, and the full view stays live.
- No facial recognition, no plate reading, no drones.
Staff and scripts
- np_admin rights nodes, a settings page and an audit log.
/cctvopens any network anywhere for staff. No ACE. - Exports, veto and value hooks, and server events for shops, dispatch or your own scripts.
- English and German.
A closer look
The monitor
A cctv_monitor item or a terminal opens it. You see the networks you own, hold a key to or work for.

- Grid and big view: every camera of the site as a tile, with its status, and the selected one large with an on-screen display. A camera can be infrared, blinded or offline.
- PTZ: pan, tilt and zoom with a pad or W A S D and the wheel, a day or IR look, and a patrol sweep.
- 24 hour timeline: scrub it with the arrow keys. Motion and event markers sit on it, and orange means after-hours motion.
- Event feed and recorder health: motion, a register opening, a lens covered, a footage request, and how full the recorder is.
- Access: keys for friends, and job networks such as police, shop chains and the prison by grade.
Placing cameras and recorders
Use a recorder first, then cameras. A camera is wired to the recorder you choose.

- Recorder first: use the recorder item, aim at the floor and press Enter. It holds 48 hours or a week and a limited number of cameras.
- Then cameras: aim at a wall and the cone shows what it sees. The wheel sets the field of view, the arrows aim, Q and E choose the recorder, Enter places.
- Coverage estimate and the recorder it is wired to, such as 5 of 8 slots, are shown before you place.
- Owners and managers get options on a placed prop: watch, aim, rename, move, remove, take the recorder.
Clips, stills and hand-over
Footage lives on the recorder prop. What leaves it is a clip, a still or a USB stick.

- Clips and stills: a clip is a window of the event log, a still a picture through screenshot-basic.
- USB stick: managers export a clip to a stick that whoever holds it can view.
- Hand to police: give footage to a case. It goes into the evidence stash and, with np_surveillance, files intel on the case.
- To screen: show a still on the nearest np_screens screen. Set
Config.Share.baseUrlto an address np_screens can reach. - Cloud backup keeps footage when a recorder is stolen or smashed.
Counterplay
A camera is only as good as the lens and the box it is wired to.

- Cover a lens next to a camera. It takes time and has a chance, and the monitor shows "lens covered" until somebody cleans it on site.
- Carry or steal a recorder: every camera wired to it loses its feed.
- Smash it: the footage that was not backed up to the cloud is destroyed.
- Owners are told: blinded, tampering and offline are events with an owner alert, so the shop knows before the morning.
With np_surveillance
np_cctv is optional for np_surveillance, and np_surveillance is optional for np_cctv. Together, a camera is part of a case.
| What | How it shows in np_surveillance |
|---|---|
| Cameras | On start, and again whenever np_surveillance restarts, np_cctv registers itself as an intel source with its own map layer and pings every camera |
| Events | Notable events (after-hours motion, blinded, tampering, offline and your own custom events) are filed as intel with the camera as source |
| Footage | Footage handed to a case goes into the evidence stash and files intel on that case, whatever the site kind |
| Privacy | Only sites whose kind is listed in Config.Share.mapKinds reach the ops map and the intel stream on their own: shops and "other" by default. Homes and police sites stay private |
Without np_surveillance, cameras are simply not on a map and nothing is filed as intel. Everything else works.
Set it up
Compatibility
np_prophandler 1.1.0 or newer is required. Every other sibling is detected at start and has a fallback, and the resource boots with none of them. No ACE is used anywhere.
| Kind | Supported |
|---|---|
| Framework | es_extended first, then qbx_core, qb-core or standalone (nothing costs) |
| Inventory | np_inventory first (items registered at runtime), then ox_inventory, qb-inventory (ps, lj) or none, where staff place gear with commands |
| Pictures | screenshot-basic for live pictures and stills. Without it, placeholder tiles |
| Investigations | np_surveillance: cameras as intel sources, footage as intel and evidence |
| Out | np_screens for a still on a screen, np_phone for owner alerts, np_hud for toasts and prompts |
| World | np_prophandler (required, 1.1.0+) for the props and their options, np_menu, ox_target or qb-target for terminals, np_shops for the register event, np_prison for prison networks |
| Others | np_payments, np_banking, np_character and np_discord |
| Staff | np_admin permission nodes, settings and audit log, or the framework's admin groups |
Installation
oxmysql and np_prophandler 1.1.0 or newer are the hard dependencies. The schema is applied on every start.
- Put the resource in
resources/asnp_cctvand start it after oxmysql, your framework and your inventory:ensure oxmysql ensure es_extended # or qbx_core / qb-core (optional) ensure np_inventory # or ox_inventory / qb-inventory (optional) ensure np_surveillance # optional: cameras as intel sources ensure np_prophandler # required, 1.1.0+ ensure np_cctv - The database schema is applied by the resource itself.
sql/install.sqlis the same SQL for importing by hand. - Items: nothing to do with np_inventory. On ox_inventory or qb-inventory, paste the block from
docs/items.md. Without an inventory, staff use/cctvcamera,/cctvrecorderand/cctvmonitor. - The NUI ships prebuilt in releases. To build it from source:
cd web && npm install && npm run build - Optional: a terminal in a back office (
Config.Monitor.terminals), a police network (Config.Networks), the address np_screens fetches stills from (Config.Share.baseUrl), and the clock your shops' opening hours follow (Config.World.clock,'real'or'game'). - Tune
shared/config/cameras.lua: the prop models, their orientation and the camera look are engine guesses that depend on the game build.
For your own scripts
Server exports to read cameras and networks, register camera types and networks, save clips and log events, veto and value hooks, and server events.
-- a shop script logs the till opening on the camera that watches it,
-- and keeps what the cameras saw of a hold-up
exports.np_cctv:logEvent({ coords = tillCoords, radius = 8.0, max = 1 }, 'register', { detail = '$240 sale' })
exports.np_cctv:logEvent({ coords = tillCoords, radius = 30.0 }, 'custom', { label = 'Hold-up', clip = 180 })
-- a police network anybody on duty can watch
exports.np_cctv:registerNetwork({ key = 'mrpd', label = 'LSPD · Mission Row', jobs = { police = 0 }, manage = 4 })
-- refuse a USB export while a case is sealed
exports.np_cctv:registerHook('beforeExport', function(ctx)
if isSealed(ctx.networkId) then return false, 'sealed' end
end) Hooks: beforePlace, beforeView, beforeClip, beforeExport, beforeBlind, retentionHours and motionSubjects. Events: np_cctv:server:event, clipSaved, cameraPlaced, cameraRemoved and recorderDestroyed.
Questions
Do I need np_surveillance?
No. np_cctv only needs oxmysql. With np_surveillance running, every camera is registered as an intel source on the ops map, notable events are filed as intel and footage handed to a case reaches it. Without it, none of that happens and everything else works.
Is footage real video?
No. Footage is an event log plus clips and stills. A clip is a window of the log, a still is a picture taken through screenshot-basic, and playback never replays the scene.
Does it work without screenshot-basic?
Yes. The monitor shows placeholder tiles with each camera's metadata and the full view stays live. Stills need screenshot-basic.
Can cameras read plates or recognise faces?
No, on purpose. Cameras only show the scene in front of them: no facial recognition, no plate reading, no "enhance" and no drones.
Can players get around the cameras?
Yes. A lens can be covered, which shows as blinded until somebody cleans it, and a recorder can be carried away, stolen or smashed. Footage that was not backed up to the cloud is lost with it.
Has it run on a live server yet?
Not yet. Everything is covered by a Lua test harness with fakes of the natives, the database, every framework, inventory and np_* sibling, and the NUI by browser mocks and screenshots. The prop models, their orientation, the camera look and the lens animation are engine guesses to check in game, and are tuned in shared/config/cameras.lua.
Does it need np_inventory or np_admin?
No. np_inventory is the first choice and registers the items itself, with ox_inventory, qb-inventory and a commands-only mode as fallbacks. With np_admin you get the permission nodes, settings and audit log, without it the framework's admin groups. ACE is never used.
Is it in German?
English and German, set with Config.Locale.
Works well with

Ensure it, wire a recorder, watch the door.
Installation, every config key and every export are in the docs.