Docs /Foltone CCTV/Installation
v1.1.0

Installation — foltone_cctv

Requirements

  • ESX Legacy, QBCore, or QBX — FiveM framework
  • oxmysql — MySQL library

Optional dependencies

DependencyPurposeRequired for
ox_target3D target interactionIf Config.InteractionType = "ox_target"
screenshot-basicCamera screenshot captureCapture feature in camera view

Download

Download the script from your Tebex account and place the foltone_cctv folder in your resources/ directory.

Server configuration

Add to your server.cfg:

set screenshot_basic_allow_fs_write "true"

ensure oxmysql
ensure es_extended      # or qb-core / qbx_core
ensure screenshot-basic # optional, for captures
ensure foltone_cctv

Important: foltone_cctv must start after your framework and oxmysql. The screenshot_basic_allow_fs_write convar is required for the capture feature to work.

Framework

The script supports 3 frameworks:

FrameworkConfig valueDependencies
ESX Legacy"esx"es_extended, oxmysql
QBCore"qbcore"qb-core, oxmysql
QBX"qbx"qbx_core, oxmysql

Set the framework in config.lua:

Config.Framework = "esx" -- "esx", "qbcore" or "qbx"

Database

Fresh installation

Execute the sql/install.sql file in your MySQL database:

mysql -u root -p your_database < sql/install.sql

You can also copy the file contents and run it in phpMyAdmin or HeidiSQL.

The script automatically adds missing columns (camera_type, job_group) on first startup. No manual migration needed.

Inventory items

You need to register the following items in your inventory system (ox_inventory, qb-inventory, etc.):

Item namePurpose
cctv_tabletSurveillance tablet — opens the camera panel
cctv_stationMonitoring station — placeable item that opens the camera panel
cctv_cam_standardStandard camera — classic wall-mounted CCTV
cctv_cam_bulletBullet camera — long-range zoom
cctv_cam_miniMini Bullet camera — compact and discreet
cctv_cam_shopShop Cam camera — PTZ 360 for stores

Each camera type has its own item. Using the item starts the placement mode for that specific camera type. The station item also starts a ground-based placement mode.

Verification

After restarting the server:

  1. Connect to the server with a character
  2. Go to the shop PED position configured in Config.ShopPositions
  3. Interact with the vendor to open the shop
  4. Buy a camera, then use the item to enter placement mode
  5. Place the camera on a wall, name it, then use the tablet to view it