> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sonoransoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Camera Setup

> Create CCTV terminals and cameras, place them in-world, and optionally enroll map or MLO camera props.

A terminal controls which cameras an operator can see and how long recordings are retained. Cameras define the viewpoint, field of view, capture range, motion behavior, and viewing capabilities.

![CCTV terminal and camera administration](https://docs-assets.sonoransoftware.com/sha256/a8/a8104c2433286844d6180711caa6b73a00b9b773c0da428d1a55c8ee2589172e.webp)

*Create, place, reposition, and manage terminals and cameras from the Settings tab.*

## Create a terminal

1. Run /cctv with cctv.admin.
2. Open **Settings**.
3. Enter a unique terminal ID and a customer-facing display name.
4. Choose a group and retention period.
5. Set the interaction distance and enable remote access only if required.
6. Select **Placement mode** to place the terminal, or enter coordinates.
7. Save the terminal.

Use groups such as police, fire, or a location name to keep access narrow. Terminal access can be controlled with `cctv.terminal.<terminalId>` and remote groups with `cctv.remote.<group>`.

## Create a camera

1. Select the destination terminal.
2. Enter a unique camera ID and name.
3. Configure the event cooldown, field of view, and capture range.
4. Enable recording and motion triggers as required.
5. Select **Placement mode** to position and aim the camera.
6. Save the camera.
7. Open the live view and confirm the intended area is visible.
8. Trigger a test recording and verify its historic playback.

![A physical CCTV camera placed in the game world](https://docs-assets.sonoransoftware.com/sha256/66/660d38909e9c6776592f2b26ea4177859c26d925c07112f63f0d664267a72955.webp)

*A configured CCTV camera mounted in the game world.*

## Camera defaults and limits

| Setting | Shipped value |
| - | - |
| Model | prop\_cctv\_cam\_01a |
| Field of view | 60 degrees |
| Zoom range | 25–90 degrees |
| Capture range | 75 metres |
| Motion cooldown | 10 seconds per entity |
| Cameras per terminal | Up to 32 |
| Maximum capture range | 250 metres |
| Recording and motion | Enabled |
| Zoom | Enabled |
| Pan and tilt | Disabled unless supported by the camera |

Moving or deleting a live camera does not change the angle saved with an already finalized recording.

## Camera models and offsets

Custom map or MLO models must be added to the allowed-camera list and given a model-specific position offset, rotation offset, and field of view. CCTV models do not all point along the same local axis, so test each model in its actual interior.

Always verify a manual camera's live view, historic playback perspective, routing bucket, and duplicate behavior before enabling automatic discovery.

## Automatic map and MLO cameras

Automatic discovery is optional and disabled by default. When enabled, CCTV scans nearby streamed camera props and registers them as normal logical cameras.

Edit eventsCctv/config/cameras.lua:

```lua theme={null}
Config.AutoEnrollMapCameras.enabled = true
Config.AutoEnrollMapCameras.scanOnResourceStart = true
Config.AutoEnrollMapCameras.scanOnAreaChange = true
Config.AutoEnrollMapCameras.scanCooldown = 10000
Config.AutoEnrollMapCameras.scanRadius = 250.0
Config.AutoEnrollMapCameras.maxAutoEnrolledCameras = 500
Config.AutoEnrollMapCameras.activateOnDiscovery = true
Config.AutoEnrollMapCameras.persistDiscoveredCameras = true
```

The shipped compatible model list includes:

```
prop_cctv_cam_01a, prop_cctv_cam_01b, prop_cctv_cam_02a,
prop_cctv_cam_03a, prop_cctv_cam_04a, prop_cctv_cam_04b,
prop_cctv_cam_04c, prop_cctv_cam_05a, prop_cctv_cam_06a,
prop_cctv_cam_07a
```

For a custom model, add it to both configured model allowlists and define its offsets:

```lua theme={null}
Config.AutoEnrollCameraModelSettings['my_mlo_cctv'] = {
    positionOffset = { x = 0.0, y = -0.35, z = 0.15 },
    rotationOffset = { x = -15.0, y = 0.0, z = 180.0 },
    fov = 65.0
}
```

## Discovery commands

```
/camerascan
/cameraautoscanstatus
/cameracleanauto confirm
/cameracleanauto stale confirm
```

These commands require cctv.admin. Enter an MLO before scanning so its objects are streamed. Review the status repeatedly before using a cleanup command; cleanup does not remove manually configured cameras.

![CCTV camera network showing terminals and camera feeds](https://docs-assets.sonoransoftware.com/sha256/ac/ac5b7823504f66d54252e245930781bab63361ff5ad4c790390e4eb438d95ada.webp)

*Configured and automatically enrolled cameras use the same operator network.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.