Cameras

This document explains how the camera system is configured, including the available cameras, their locations, and settings.

shared/security_cameras_config.lua

🔧 Camera Configuration Structure

Each camera is configured with a unique ID, location, coordinates, status, and camera heading. The configuration also allows you to set a maximum recording time for each camera.

Camera Configuration Example

Config.RecordTime = 10  -- Max record time in seconds

Config.Cameras = {
    [1] = {
        id = 1,
        location = "Pacific Bank CAM#1",
        coords = vector3(257.45, 210.07, 109.08),
        status = "online",
        camHeading = 90.0,
    },
    [2] = {
        id = 2,
        location = "Limited Ltd Grove St. CAM#1",
        coords = vector3(-53.1433, -1746.714, 31.546),
        status = "online",
        camHeading = 90.0,
    },
    [3] = {
        id = 3,
        location = "Casino Garage",
        coords = vector3(928.9232, -2.5198, 83.7641),
        status = "online",
        camHeading = 157.7447,
    }
}

🟦 Camera Configuration Details

Config.RecordTime

  • Description: Defines the maximum record time for each camera in seconds.

  • Default Value: 10 seconds

  • Usage: Set to control the maximum time that each camera can record.

Cameras Table

  • ID: Unique identifier for the camera.

  • Location: Name/label of the camera's physical location.

  • Coords: Position in the game world (X, Y, Z coordinates).

  • Status: Current status of the camera, e.g., "online" or "offline".

  • CamHeading: The direction in which the camera is facing, represented in degrees.


📌 Camera Status

Each camera can be in one of the following states:

  • Online: The camera is active and functioning.

  • Offline: The camera is inactive or unavailable.


Last updated