Cameras & recorders ​
A site is a set of cameras wired to one or more recorders. The cameras see, the recorder remembers. This page covers the camera types, how players put them up and take them down, the recorder and what other players can do to both.

Camera types ​
Camera types are data in Config.Cameras.types (Configuration). Every type has an item that
places it (Items).
| Type | Item | Field of view | Range | PTZ | Good for |
|---|---|---|---|---|---|
| Fixed | cctv_camera |
70 degrees (aim 40 to 100) | 35 m | none | A door or a counter |
| PTZ | cctv_camera_ptz |
60 degrees (aim 40 to 80) | 55 m | 120 degrees pan, 35 degrees tilt, 4x zoom, patrol sweep | A car park or a yard |
| Dome | cctv_camera_dome |
95 degrees (aim 70 to 110) | 25 m | 180 degrees pan, 45 degrees tilt, 2x zoom, patrol sweep | A room or a corridor |
| Doorbell | cctv_doorbell |
110 degrees (aim 90 to 120) | 10 m | none | A front door |
The range in the table is how far the camera sees by default. The placement preview draws the cone to that distance, and motion is captured inside it. Pan and tilt are measured from where the camera was aimed when it was placed. A PTZ or dome camera can be steered from the monitor within those limits.
Add a type at runtime ​
A script can add a camera type without touching the config:
local ok, code = exports.np_cctv:registerCameraType({
id = 'bullet', item = 'cctv_camera_bullet', label = 'Bullet camera',
model = 'prop_cctv_cam_01a', fov = 50, minFov = 30, maxFov = 70,
range = 60.0, maxRange = 80.0, offset = 0.25, icon = 'video', price = 400,
})
pan, tilt and zoomMax are optional (leave them out for a fixed camera). Give the type an item that your inventory
knows (Items). The call returns true, or false, 'invalid_params'. See Exports.
Placing ​
Cameras are placed from their item. A camera needs a recorder of yours within reach, so the order is always recorder first.
1. Place a recorder ​
Use a cctv_recorder (or cctv_recorder_pro). Aim at the floor or a shelf and press Enter.
- A new site is created the first time (you are asked for a name). The site belongs to you.
Q/Eswitch between new site and the sites you already manage, so a second recorder can join one.- A recorder you took away earlier (see counterplay) goes back to its own site with its footage.
2. Place a camera ​
Use a camera item. A ghost prop sits where your crosshair meets the world, and the view cone is drawn in the world.
| Key | What |
|---|---|
Enter |
Place the camera (you are asked for a name) |
Backspace |
Cancel |
| Mouse wheel | Field of view, within the limits of the type |
| Arrow keys | Aim: left and right turn, up and down tilt |
Q / E |
Choose the recorder it is wired to |
The card at the bottom shows the camera name, a coverage ring, the field of view, the heading, the range, the site
and the recorder with its camera count (for example Wired to Recorder 1 (5/8)). Coverage is the share of the range the
camera sees without something in the way, estimated from a fan of sight lines. Placing is refused where it says
Cannot go here, and when Config.Install.preview.minCoverage is raised, below that coverage.
What the server checks ​
- You hold the item and stand within
Config.Install.reach(7 m) of the spot. - The recorder is yours to manage, is placed, and is within
Config.Install.wireRange(90 m) of the camera. - The recorder is not full (8 cameras on a
cctv_recorder, 16 on acctv_recorder_pro). - The site has fewer than
Config.Cameras.maxPerNetworkcameras (16). - You own fewer than
Config.Cameras.maxNetworksPerPlayersites (4) when you start a new one. - No hook vetoes it (
beforePlace).
Options on a placed prop ​
Standing next to a camera or recorder shows its options. np_prophandler shows them: an np_hud prompt with one key each
(E, G, H, K, X, Y in list order), or ox_target / qb-target. Only the options you may use right now appear.
| On | Option | Who |
|---|---|---|
| Camera | Watch (opens the monitor on its site), Re-aim, Rename, Move, Remove | Owners and managers of the site |
| Camera | Cover lens / Clean lens | Anybody |
| Recorder | Watch, Take (carry it away) | Owners and managers |
| Recorder | Steal | Anybody who does not manage the site |
| Recorder | Smash | Anybody, owners included |
- Re-aim opens the placement preview again for the same camera and resets its PTZ.
- Move takes the camera down (it comes back as the same item, with the same serial) and starts placing it again.
- Remove gives the item back. Without an inventory nothing is given and staff simply remove it.
- Every action needs you to be close; the server checks the distance.
A camera is wired to the recorder you choose when you place it. If its recorder is lost the camera goes offline; take it down and place it again on a working recorder.
Status of a camera ​
| Status | Meaning |
|---|---|
| Online | Wired to a placed recorder in range and not covered. It records motion |
| Offline | Its recorder is gone, carried away or out of range. The monitor says offline since ... |
| Blinded | Somebody covered the lens. It records nothing until somebody cleans it |
Offline wins over blinded. Each change is written to the camera's event log.
Recorders ​
The recorder is a prop. The footage lives on it.
| Item | Buffer | Cameras |
|---|---|---|
cctv_recorder |
48 hours | 8 |
cctv_recorder_pro |
one week (168 hours) | 16 |
- Rolling buffer. A recorder keeps events for
capacityHours. Older events are pruned everyConfig.Recording.pruneSeconds. A new recorder starts empty; the monitor shows how full the buffer is (for example Recorder 61%) and how long it keeps footage (Keeps 48 h). - Cloud backup. A manager can switch a backup on per recorder in the monitor. It costs
Config.Backup.feeonce and keeps the footage forConfig.Recording.backupHours(168), even when the recorder is destroyed. - Hook.
retentionHourslets a script change how long a recorder keeps its buffer (Exports).
Add or change recorder items in Config.Recorder.items (Configuration).
Counterplay ​
Anybody can work on a lens or a recorder. The server owns the timer and the dice, so the client cannot skip the time.
Each action can be vetoed with the beforeBlind hook, and the actions are written to the site's audit
trail.
Covering a lens ​
Stand within 3.5 m of the camera and choose Cover lens. It takes Config.Lens.coverSeconds (4) and then rolls the
chance of the camera type:
| Type | Chance per attempt |
|---|---|
| Fixed | 90 % |
| PTZ | 75 % |
| Dome | 55 % |
| Doorbell | 95 % |
- On success the camera is blinded until somebody cleans it. The monitor shows lens covered since ....
- On failure the same player must wait
Config.Lens.cooldownSeconds(8) before trying that camera again. - Set
Config.Lens.item(for example a spray can) to require an item; withconsume = trueit is used up on success. - Clean lens takes
Config.Lens.cleanSeconds(5) and always works. The event log records blinded and cleaned.
Carrying, stealing and smashing a recorder ​
| Action | By | Time | What happens |
|---|---|---|---|
| Take | Owner or manager | 4 s | The recorder becomes an item that remembers its footage (recorderId in its metadata). Its cameras go offline. Set it up again and the cameras within range wake up |
| Steal | Anybody else | 7 s | The recorder is destroyed. The thief gets a blank recorder item. The footage is wiped unless backed up |
| Smash | Anybody | 6 s | The recorder is destroyed. The footage is wiped unless backed up |
When a recorder is stolen or smashed, a tamper event is written on its first camera after the footage is wiped. The
event does not belong to the recorder any more, so it survives and the owner reads what happened in the feed. Stolen and
smashed recorders are also written to the np_admin audit log and trigger the np_cctv:server:recorderDestroyed event.
Clips that were exported to a USB stick are not on the recorder and live on.
World props ​
Cameras and recorders are client-only streamed props of
np_prophandler. Props closer than Config.Props.streamRadius (90 m) exist on a client and are
removed when you walk away. Their options are an np_prophandler interact list on
the prop, and every prop is added again on the client np_prophandler:ready (1.1.0+). The
placement ghost is an np_prophandler local prop. np_prophandler removes all of them when np_cctv stops. The models are engine guesses; see
Before you open it.