Skip to content

Monitor ​

The monitor is a Nimbus glass wall: a row of camera tiles, a big view with its on-screen display, a 24 hour timeline, a PTZ pad, an event feed, recorder health and the footage tools.

The monitor

Opening the monitor ​

How Where it works What you see
A cctv_monitor item (a laptop) Anywhere Every network you may watch
A terminal (Config.Monitor.terminals) Within terminalRadius (3 m) of the prop That terminal's site, or every network you may watch. A terminal can be limited to a job
The Watch option on a camera or recorder Next to the site's own gear That site
/cctv Anywhere, for staff Every network (Commands, keys & staff)
exports.np_cctv:openMonitor(src, networkId?, terminalId?) Server side, from your script Opens it on that player's client. Their access is checked
exports.np_cctv:OpenMonitor(networkId?) Client side Asks the server; it only answers next to the site's own gear, or for staff

A cctv_usb item opens the monitor in viewer mode on one clip instead. With no inventory, staff use /cctvmonitor (Commands).

Esc closes the monitor. While it is open, np_cctv pushes new events and camera and recorder changes to it.

Networks ​

Everything is organised in networks (sites). The monitor header names the network, its camera count, owner and opening hours, and has a switcher when you may watch several.

Kind of network Created by Who watches
Player site Placing a recorder as a new site (Cameras). Its kind is other The owner, and friends with a key
Job network Config.Networks at start, or exports.np_cctv:registerNetwork Everybody whose job grade reaches the network's jobs entry

A job network lists the jobs that may watch (and from which grade) and the grade that may manage:

lua
-- shared/config/monitor.lua
Config.Networks = {
  { key = 'mrpd', label = 'MRPD Mission Row', kind = 'pd', jobs = { police = 0 }, manage = 3 },
}
lua
-- from another resource, idempotent by key
local id, code = exports.np_cctv:registerNetwork({
  key = 'shop_chain', label = '24/7 Supermarkets', kind = 'shop',
  jobs = { shopkeeper = 0, manager = 0 }, manage = 2,
  hours = { open = 6, close = 22 },
})

Cameras are placed on a job network like on any other: a recorder wired to the network, placed by somebody who may manage it. registerNetwork answers false, 'forbidden' when the key belongs to a player's site, and false, 'invalid_params' for a bad definition. A network entry may also carry feeds = { np_prison = true } so it follows prison alert levels (Integrations).

The kind (shop, pd, home, other) decides what np_surveillance sees (Integrations).

Access levels ​

The highest of these applies to you on a network:

Level You are Can
Owner The player who created the site Everything on the site, including handing out managing keys
Manage Holder of a managing key, or a job at or above the network's manage grade, or staff Everything a viewer can, plus patrol sweep and day / IR, placing cameras, deleting clips, export to USB, hand to police, the cloud backup and view keys
View Holder of a view key, or a job at or above the jobs grade Watch every camera, move PTZ cameras, scrub the timeline, save clips and stills, push a still to a screen
Staff Holds np_cctv.admin Manage level on every network

Only the owner may hand out a managing key. A job's access shows in the key list as police (grade 0+).

Hooks can refuse in addition: beforeView refuses opening or switching to a site.

The wall ​

  • Tiles. One per camera (CAM 1 to n). Each shows its picture, label and state: the selected tile has a white ring, an infrared camera is tinted green, and a covered or offline camera shows lens covered since ... or offline since ....
  • Big view. The selected camera with its OSD: LIVE or the archive time, the camera name and type, zoom, the date, and the aim (pan and tilt, or heading and field of view).
  • Header chips. Cameras online, blinded, recorder usage, how long the buffer keeps footage, opening hours, access.
  • Event feed. Events - tonight: the last Config.Recording.feedHours (12) hours of the site, newest first, with a filter for the selected camera. See Footage.
  • Recorder health. Buffer usage, capacity, camera count and the cloud backup toggle.

Keys on the wall ​

Key What
Arrow keys left / right Scrub the timeline
Q / E Previous / next camera
W A S D Pan and tilt the selected PTZ camera
Mouse wheel Zoom
Z Day / infrared
Space Play / pause the timeline head
Esc Close

PTZ and patrol ​

The PTZ pad pans, tilts and zooms a camera within its type's limits (PTZ: 120 degrees pan, 35 tilt, 4x zoom; dome: 180, 45, 2x). Anybody who may watch can steer. A patrol sweep moves the camera back and forth on its own; managers switch it on and off. Steering turns patrol off. Fixed and doorbell cameras have no PTZ. A covered or offline camera cannot be steered. The camera's view cone follows pan, tilt, zoom and the patrol, so motion is judged on what it sees right now.

Day and infrared ​

The mode of a camera is Auto, Day or IR night. Auto uses infrared between the game hours in Config.Cameras.irHours (20 to 6). Managers set the mode per camera. In the full view Z switches it for you only.

The timeline ​

A bar of the camera's last 24 hours with a marker for each event. Orange is motion after hours. Scrubbing moves the head; the big view shows the nearest saved still, or an archive HH:MM placeholder. The head moves and the log is read, but nothing replays the scene, because the footage is an event log. Times are printed in the server's UTC offset.

The footage tools below the timeline are Clip, Still and To screen, and in the side panel Hand to police, Export to USB and Save clip. See Footage.

Full view ​

The Full view hides the wall and lets the game draw the camera. It is live with or without screenshot-basic.

Full view

Key What
W A S D Pan and tilt (PTZ cameras)
Mouse wheel Zoom (PTZ cameras)
Z Day / infrared, for you
Backspace Back to the wall

The OSD shows REC, the camera name and type, the clock and date, and pan, tilt and zoom.

Live picture ​

The game draws the camera through a script camera at the lens. How the wall shows it depends on screenshot-basic:

With screenshot-basic Without
Selected camera A picture about every snapshotMs (1 s) A placeholder with the camera's metadata
Other tiles One after the other every thumbMs (4 s) Placeholders
Still Saved with a picture Saved without one
Full view Live Live

Placeholder tiles without screenshot-basic

The placeholder says No live image on this server, with heading, field of view and range. See Integrations and the timings in Configuration.

Keys for friends ​

A manager opens Access in the side panel to see who may watch. To give a friend a key, they must stand within Config.Access.grantRadius (6 m) of you. The key lets them watch the site from any monitor they can open, until a manager revokes it. A site holds up to Config.Access.maxKeysPerNetwork (12) keys. The friend gets a notice, and the grant and revoke are written to the audit trail.

Several sites ​

The switcher at the top of the side panel moves between networks. A site whose recorder was carried away shows its cameras as offline and a Recorder lost chip.

Several sites: a police network whose recorder was carried away