Commands, keys & staff ​
Players: keys ​
np_cctv is driven by items, the options on a prop and the monitor, not by commands. Every key below is fixed while its screen is open.
Placing a camera or recorder ​
| Key | What |
|---|---|
Enter |
Place (you are asked for a name) |
Backspace |
Cancel |
| Mouse wheel | Field of view (cameras) |
| Arrow keys | Aim: left and right turn, up and down tilt (cameras) |
Q / E |
Choose the recorder a camera is wired to; for a recorder, choose the site |
Options on a placed prop ​
np_prophandler shows the options: an np_hud prompt with one key each (E, G, H, K, X, Y), or ox_target /
qb-target. See Cameras & recorders.
The monitor ​
| Key | What |
|---|---|
| Arrow keys left / right | Scrub the timeline |
Q / E |
Previous / next camera |
W A S D |
Pan and tilt a PTZ camera |
| Mouse wheel | Zoom |
Z |
Day / infrared |
Space |
Play / pause the timeline head |
Esc |
Close |
In the full view: W A S D pan and tilt, the wheel zooms, Z switches day / infrared for you,
Backspace goes back.
Commands ​
| Command | Who | What |
|---|---|---|
/cctv |
Staff | Opens the monitor on any network, anywhere. The server checks np_cctv.admin |
/cctvcamera [type] |
See below | Starts placing a camera: fixed (default), ptz, dome or doorbell |
/cctvrecorder [item] |
See below | Starts placing a recorder: cctv_recorder (default) or cctv_recorder_pro |
/cctvmonitor |
See below | Opens the monitor on every network you may watch |
Without an inventory ​
/cctvcamera, /cctvrecorder and /cctvmonitor exist for servers without an inventory (Config.Inventory = 'none',
or no supported inventory started). With an inventory they answer that they are not available; use the items.
Config.Install.noInventory decides who may use them:
| Value | Who |
|---|---|
'staff' (default) |
Staff only (np_cctv.admin) |
'free' |
Everybody |
'off' |
Nobody |
Gear placed this way costs nothing and is not taken from anybody. Command names can be changed or dropped in
Config.Install.commands. USB sticks and the evidence hand-over need an inventory.
Staff ​
np_cctv uses no ACE permissions. Every staff check asks for a permission node
through the np_admin lib vendored byte-identical in bridge/np_admin.lua (np_admin stays optional). Jobs are not staff:
they only open job networks (Monitor).
Permission nodes ​
| Node | Grants |
|---|---|
np_cctv.admin |
Watch every network (manage level everywhere), /cctv, place cameras and recorders without items on servers without an inventory. Covers every other np_cctv node |
np_cctv.networks |
Listed in np_admin's matrix as CCTV networks: rename, remove and hand out keys on any network. np_cctv.admin already includes it |
With np_admin running, np_admin decides: grant the nodes (or np_cctv.*) to staff groups in its
permission matrix (category CCTV). The lists below no longer count.
Without np_admin (or with Config.Integrations.np_admin = false) a player is staff, with every node, when one of these
holds:
- Their FiveM identifier is in
Config.Admins('license:...','discord:...'). - They are in one of the framework's admin groups (
Config.AdminGroups: ESXadmin,superadmin; qb and qbxadmin,god). - With np_discord running, they hold one of
Config.AdminDiscordRoles(role ids or np_discord role names). The answer is kept forConfig.AdminDiscordCacheSeconds(60 s).
The server console may do everything. See Permissions & np_admin.
What staff can do ​
- Watch every network on the server, from the
cctv_monitoritem or/cctv, with manage rights: PTZ settings, clips, export, backup and keys. - Open the monitor anywhere, not only next to the site's gear.
- Place gear without items with the commands above, on servers without an inventory.
Settings page ​
np_cctv registers its settings with np_admin's Resource settings (label CCTV, icon video, blue): general, cameras and recording. The full list is on Configuration.
Logs ​
- np_admin audit log, category
np_cctv: a recorder that was stolen or smashed (who, which site, which recorder). - np_cctv's own audit trail per site: installs and removals, aiming, lens work, clips, exports, hand-overs, backup changes and keys.
- np_discord, channel
cctv: tamper and blinded events, and footage that was shared.
Theme ​
np_cctv's screens follow np_admin's central theme (npAdmin.onTheme). Without np_admin they use the Nimbus default.
Config.Theme overrides it for np_cctv alone (Configuration).