> For the complete documentation index, see [llms.txt](https://tk-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk-scripts.gitbook.io/docs/tk_cctv.md).

# tk\_cctv

CCTV lets players on a FiveM server place security cameras with an item and watch them from a tablet, on ESX, QBCore or Qbox.

Owners watch their cameras from a tablet, rename them, hand them over and group them to flip between feeds. You decide which cameras can be destroyed, repaired or hacked, and which jobs may place certain cameras or remove anyone's. Repairs and removals work only within a distance you set.

[CCTV Camera System product page](https://tkscripts.com/scripts/cctv?utm_source=gitbook\&utm_medium=docs\&utm_content=cctv) | [Watch the showcase on YouTube](https://www.youtube.com/watch?v=Ov5ATUi9KmA) | [Install CCTV](/docs/tk_cctv/installation.md)

{% embed url="<https://www.youtube.com/watch?v=Ov5ATUi9KmA>" %}
CCTV showcase (4 min 1 s).
{% endembed %}

## Features

### Camera types and placing

* Add as many different cameras as you want
* Three types by default: faulty, default and advanced
* Place cameras with the camera item
* Restrict certain cameras so only certain jobs can place them

### Damage and repair

* Shooting cameras can destroy them
* Configure whether a camera can be destroyed
* Configure whether a camera can be repaired; if not, it's removed when destroyed
* Destroyed cameras show a black screen when viewed

### View modes and night vision

* Static: the view can't be moved
* Controllable: the view moves by a configurable amount
* 360: full 360 view
* Night vision on and off
* Configurable maximum and minimum FOV

### Camera hacking

* View cameras you don't have access to
* Configure whether each camera can be hacked
* Configure the maximum distance for hacking
* No hack minigame is included: you add your own in the [editable client file](/docs/tk_cctv/config.md#editable-functions)

### Camera tablet

* Shows camera ID, name and distance
* Search and filter
* Toggle the camera view
* Add access for a player by ID or for a job, with a minimum grade
* Remove access from a player or a job
* Transfer ownership to another player
* Manage groups; cameras in the same group can be switched between while viewing
* Repair a destroyed camera within a configurable distance
* Remove your own cameras within a configurable distance; set jobs that can remove anyone's
* Rename a camera (the owner, or players given full permissions)

### Integration and languages

* Supports ox\_lib alongside ESX, QBCore and Qbox
* Sends logs to Discord
* English and Finnish by default, and you can translate everything yourself

## Requirements

| Item      | Supported                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Framework | ESX, QBCore, Qbox. Another framework works after editing the framework files.                                                                                    |
| Database  | oxmysql or mysql-async                                                                                                                                           |
| Inventory | Items go through the framework's item functions. Item lists for ox\_inventory, ESX and QBCore are in [CCTV installation](/docs/tk_cctv/installation.md#install). |
| Languages | English, Finnish                                                                                                                                                 |

Camera hacking needs a minigame you add to `HackCameraMinigame`. The CCTV app on [tk\_laptop](/docs/tk_laptop.md) needs that resource, sold separately. Every dependency and its start order: [CCTV installation](/docs/tk_cctv/installation.md#requirements).

## Start here

* [Install CCTV](/docs/tk_cctv/installation.md)
* [Update without losing your config](/docs/tk_cctv/installation.md#update-without-losing-your-config)
* [Set up camera types, distances and access](/docs/tk_cctv/config.md)
* [Open the tablet from another resource](/docs/tk_cctv/exports/client.md)
* [Fix common problems](/docs/tk_cctv/common-questions-and-problems.md)

Support: open a ticket in the [TK Scripts Discord](https://discord.gg/YndnF9tkqu).
