Accessible code

Shared = {
    Locale = 'en',

    Notify = {
        duration = 5000, -- miliseconds
        position = 'top-center' -- 'top' or 'top-right' or 'top-left' or 'bottom' or 'bottom-right' or 'bottom-left' or 'center-right' or 'center-left'
    },
    
    Logs = {
        enabled = true,
        webhook = '',
        servername = 'Uniq Scripts',
        color = 6579450,
        icon_url = 'https://dunb17ur4ymx4.cloudfront.net/webstore/logos/248d77847b320034db12949cf577772b654daadd.png'
    },

    webhook = '', -- your discord channel webhook (logs & recorded camera history)
    recordTime = 30, -- represents time of camera video recording in seconds
    CopyLink = true, -- whether to copy video download link when playing video or not

    AllowRotate = true, -- whether to allow camera owners to rotate cameras or not
    Record = true, -- whether to allow camera recording or not (records are saved to your discord webhook)

    HackProtection = 50000, -- price for protection from hackers (10% chance for hackers to hack the camera)
    HackRadius = 1000, -- radius the hack device will search for (in meters)
    HackCamera = { -- settings for hacking cameras
        policeOnly = false,
        policeJobs = { -- requried
            ['police'] = true
        },
        policeNotify = true, -- notify police about cameras being hacked
        cameraDelay = 300000, -- delay for restoring all hacked cameras - ms
    },

    Keys = { -- https://docs.fivem.net/docs/game-references/controls/
        finish = 191,
        cancel = 194,
        moveUp = 85,
        moveDown = 48,
        moveRight = 175,
        moveLeft = 174,
        moveForward = 172,
        moveBack = 173,
        rotateRight = 313,
        rotateLeft = 312,
        camera_rotateRight = 35,
        camera_rotateLeft = 34,
        camera_rotateUp = 32,
        camera_rotateDown = 33,
        record = 57
    },

    Items = {
        camera = 'key',
        tablet = 'lockpick',
        hackdevice = 'hackdevice'
    },

    Tablet = {
        dict = "amb@code_human_in_bus_passenger_idles@female@tablet@base",
        anim = "base",
        object = "prop_cs_tablet",
        bone = 60309,
        offset = vector3(0.03, 0.002, -0.0),
        rotation = vector3(10.0, 160.0, 0.0)
    },

    Object = "prop_cctv_cam_01a", -- camera object | suggested: 'prop_cctv_cam_01b', 'prop_cctv_cam_01a'

    RestrictedAreas = {
        {
            coords = vector3(123.45, -567.89, 30.0),
            radius = 50.0,
            name = "Police Station"
        },
        -- Add more restricted areas as needed
    },

    Camera = {
        maxZoom = 50.0,
        minZoom = 5.0,
        zoomSpeed = 1.0,
        nightVision = {
            enabled = true,
            toggleKey = 249, -- N key
            timecycle = "secret_camera", -- Main night vision effect
            thermalVision = false -- Set to true if you want thermal vision instead
        }    
    }
}

-- Framework
-- your framework loading here (presetuped)

Last updated