[PAID] [QB/ESX] m-SpyCams & CCTV - Create cameras for business - Spy Cams

:pushpin: About:

  • This script allows people without work or even people with gangs to install spy cameras in areas they need to monitor and access them to see.
  • The script also allows installation of CCTV cameras for work, for example: the mechanics’ company contacts the camera installation company to install 5 or 6 cameras in the workshop and then have cameras inside the workshop to monitor.
  • Cameras have a chance of shutting down and never working again until new ones are installed. Company cameras can be hacked by normal players to access them.

:pushpin: Features:

  • Optimized
  • 0.00ms
  • Compatible with “qb-target” or “ox_target” (Config.Target)
  • Compatible with “qb-inventory” or “ox_inventory” (Config.Inventory)
  • Compatible with “ps-ui” or “bl_ui” or “ox_lib” minigames (Config.Hacking)
  • Configurable spy camera prop (Config.Prop)
  • Pre-supported languages: “pt” (Portuguese), “en” (English), “es” (Spanish), “fr” (French), or “de” (German) (Config.Language)
  • Configurable maximum distance for placing a camera (Config.DistancePlacing)
  • Configurable maximum distance for using cameras (Config.DistanceUsing)
  • Configurable distance to delete your own cameras (Config.DistanceDelete)
  • Configurable if the police can destroy spy cameras (Config.PoliceDestroy)
  • Configurable list of police jobs (Config.PoliceJobs)
  • Configurable keys for moving the cameras (Config.Keys)
  • Configurable for using the script with a job (Config.JobSettings)
  • Configurable commands to create/check cameras
  • Hacking cameras
  • Locate cameras on zones (Config.LocateCameras)

:pushpin: Config:

Config = {}

Config.Debug = true

Config.Core = "qb-core" -- Your qb-core folder name
Config.Target = "qb-target" -- Choose between "qb-target" or "ox_target"
Config.Inventory = "qb-inventory" -- -- Choose between "qb-inventory" or "ox_inventory"
Config.Prop = "prop_ing_camera_01" -- Prop name for spy cameras
Config.Language = "en" -- Language "pt" or "en" or "es" or "fr" or "de"
Config.Shooting = true -- If true, if people shoot on CCTV's cameras the camera destroy

Config.DistancePlacing = 10.0 -- Distance max when player are placing the camera
Config.DistanceUsing = 10.0 -- Distance max to player use cameras ( jobs and spy cams )
Config.DistanceDelete = 10.0 -- Distance to delete own cameras ( jobs and spy cams )

Config.PoliceDestroy = true -- If true, police job's can destroy the cameras
Config.PoliceJobs = { -- List of your police jobs to destroy spy cameras
    "police",
    "lspd"
}

Config.Keys = {
    Up = 208, -- PAGE UP
    Down = 207, -- PAGE DOWN
    Front = 27, -- ARROW UP
    Back = 173, -- ARROW DOWN
    Left = 174, -- ARROW LEFT
    Right = 175, -- ARROW RIGHT
    RotationL = 14, -- NUMPAD 7
    RotationR = 15, -- NUMPAD 8
}

Config.JobSettings = {
    Enable = true, -- Enable create cameras for jobs? Example: Create cameras for mechanic and mechanic can check own cameras
    jobName = "police", -- Job used to create cameras for jobs
    commandCreate = "createjobcamera", -- Command for people with jobName create cameras
    commandCheck = "checkcamerasjob", -- Command for all people with jobs can check cameras of own job
    CCTVsProps = { -- List of possible props can be used
        "prop_cctv_cam_06a",
        "prop_cctv_cam_05a",
        "prop_cctv_cam_01a",
        "prop_cctv_cam_03a",
        "prop_cctv_cam_01b",
        "prop_cs_cctv"
    },
    JobsCanReceive = { -- List of jobs can be installed CCTV's
        [1] = { name = "police", Label = "Police"},
        [2] = { name = "ambulance", Label = "Hospital"},
        [3] = { name = "mechanic", Label = "Mechanic"},
    },
    Shutdown = true, -- Enable shutdown cameras?
    Chance = 5, -- 5% chance camera shutdown and you need call assistance to insert another one
}

Config.SpyCamsSettings = {
    enable = true, -- Enable spy cams?
    item = "spycam", -- Item to create a spy cam
    commandCheck = "checkspycams"
}

Config.Hacking = {
    enable = true, -- Enable hacking cameras?
    coords = vector3(1275.73, -1710.45, 54.77), -- Location to hacking cameras
    minigameType = "ps-ui", -- "ps-ui" or "bl_ui" or "ox_lib"
}

Config.LocateCameras = {
    enable = true, -- Enable using item to detect cameras near the ped?
    item = "cameradetector", -- Item used to detect cameras near the ped
    maxDistance = 5.0, -- Distance item can check cameras
}

:pushpin: Links:

| Code is accessible | configs |
| Subscription-based | No |
| Lines (approximately) | ~1500 |
| Requirements | Server Build 2699 |
| Support | Yes |

3 Likes