# CCTV Configuration

## CCTV Configuration

The CCTV system allows officers to view live camera feeds from predefined locations.

***

### Camera Locations

Each camera requires:

* id — Unique identifier
* name — Display name
* zone — Area/zone name
* status — 'online' or 'offline'
* coords — vector4(x, y, z, heading)

```
Config.Cameras = {
    {
        id = 1,
        name = 'Mission Row PD - Entrance',
        zone = 'Downtown',
        status = 'online',
        coords = vector4(441.65, -982.07, 30.69, 180.0)
    },
    {
        id = 2,
        name = 'Mission Row PD - Parking',
        zone = 'Downtown',
        status = 'online',
        coords = vector4(457.35, -1017.41, 28.10, 270.0)
    },
    {
        id = 3,
        name = 'Vinewood Boulevard',
        zone = 'Vinewood',
        status = 'online',
        coords = vector4(313.68, 180.63, 103.59, 250.0)
    },
    {
        id = 4,
        name = 'Del Perro Beach',
        zone = 'Del Perro',
        status = 'offline',
        coords = vector4(-1607.0, -1065.0, 13.0, 45.0)
    },
}

---
```

***

### CCTV Settings

```
Config.CCTV = {
    DefaultFOV  = 60.0,   -- Default field of view
    MinFOV      = 15.0,   -- Minimum zoom (most zoomed in)
    MaxFOV      = 90.0,   -- Maximum zoom (most zoomed out)
    RotateSpeed = 5.0,    -- Mouse rotation speed
    ZoomSpeed   = 3.0,    -- Scroll zoom speed
    NightVision = true,   -- Enable night vision toggle (N key)
}
```

<br>

***

### CCTV Controls

| Key         | Action              |
| ----------- | ------------------- |
| Mouse       | Rotate camera       |
| Scroll Up   | Zoom in             |
| Scroll Down | Zoom out            |
| N           | Toggle night vision |
| ESC         | Exit camera         |

***

### Adding New Cameras

1. Go to the desired location in-game
2. Get coordinates using /coords or similar command
3. Add a new entry to Config.Cameras
4. Set status to 'online' or 'offline'
5. Restart the resource

```
{
    id = 11,
    name = 'Your Camera Name',
    zone = 'Your Zone',
    status = 'online',
    coords = vector4(x, y, z, heading)
},
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/core-systems/mdt-v2.0/cctv-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
