Skip to content

CCTV Cameras

Buy Here

FiveM Forums Post

YouTube Walkthrough Video

INSTALLATION GUIDE

Step 0 - First Steps

1. Download your resource from FiveM's Keymaster.

2. Unzip the cd_cctv.zip folder and place this folder in your server's resource folder.

3. Add the resource to your server start config (server.cfg): ensure cd_cctv. If you are using a framework, it must be placed anywhere below your framework resource e.g., es_extended, not above.

ensure es_extended
ensure cd_cctv

Step 1 - Configure Resource

You MUST read all configurable options inside the [cd_cctv/configs/config.lua] file and configure them to suit your server's needs. Please read the commented out help text at the end of each line so you can understand what each config option does.

The most important sections are the options under the Frameworkand Importantsections at the top of the config.lua. Everything else is optional.

NEW: Auto Framework Detect!

Introducing our new 'auto_detect' feature! It automatically identifies your framework and applies the appropriate default settings.

Step 2 - Add More Camera Types

In the [cd_cctv/configs/config.lua] file, scroll down to the PLACING CCTV CAMERAS section. In the Config.CCTV table you can configure default cameras or add new ones; everything is explained in the commented out help text.

HOW TO USE

This resource is very easy to install, configure and use. Once the steps above are complete, the rest is simple:

  1. You have 2 ways to place the CCTV cameras, depending on if you use a framework. You can either use the /cctv1 or /cctv2 chat commands or use the cctv1 or cctv2 usable items (if you use a framework).
  2. Now you have placed your camera, use the /cctvui chat command to open the CCTV management UI; here, you can view the cameras and give other players access to view your cameras.

INFORMATION

Chat Commands

These chat commands can be renamed and/or disabled in the Keys and Commands section of the [configs/config.lua].

The exact usage for each command will be displayed in the chat suggestions when using the commands in-game.

CommandDescription
/cctvuiOpen the cctv UI.
/cctv1Place a camera (with default settings in Config.CCTV).
/cctv2Place a 180° camera (with default settings in Config.CCTV).
/cctv3Place a fixed camera (with default settings in Config.CCTV).

Events

These events are completely optional; you can use them if needed.

Exports

These exports are completely optional; you can use them if needed.

Usable Items

Usable items can be renamed or disabled in the [configs/config.lua]. You can also add more in the Config.CCTV table.

Item NameDescription
cctv1Place a 360° camera (with default settings in Config.CCTV).
cctv2Place a 180° camera (with default settings in Config.CCTV).
cctv3Place a fixed camera (with default settings in Config.CCTV).

Inventory Images (100x100)

COMMON ISSUES

Please check out our Troubleshooting Guide before contacting our support.

Folder Name Make sure the name of the folder either cd_cctv.

Encrypted Files Do not edit the encrypted files in any way.

ERROR CODES

If you see an error code not listed below, please open a script support ticket in the Codesign Discord.

CHANGELOG

Files Changed

Not every update requires replacing the entire folder. To avoid redoing your configs, use the option that applies

KeyMeaning
Full Re-Download RequiredDelete the old folder and replace it with the latest version. Reuse your config.lua unless told otherwise.
Update Specific FilesOnly the files listed below need to be replaced.
Config Update RequiredYour config.lua must be updated for this version.
Requires Auto SQL EnabledEnable Config.AutoInsertSQL in config.lua to apply required database updates.

Skipping Updates

If you’ve skipped previous updates, it’s recommended to update all files to avoid issues.
For example, if you're on v4.0.1, skipped v4.0.2, and are updating to v4.0.3, use the Full Download option.

PLEASE READ! (JSON files)


When updating a resource that uses JSON files as a database as this one does, DO NOT delete/replace the files/folders inside the JSON files folder, as this will overwrite your saved database.

Hello!