Configuration

Contents of config.lua

Config = {}

--[[  
    Framework and inventory, please choose your type of inventory 
    and framework according to the defaults that the system comes with!
]]

Config.Framework = 'qb'    -- 'esx' or 'qb'
Config.Inventory = 'qs'     -- 'qb', 'qs' or 'ox'

--[[  
    General configuration of the asset
]]

Config.CameraBroken = true                  -- If you want the camera to break, use this.
Config.CameraBrokenChance = 10              -- Percentage of camera breakage, from 1 to 100% (default 10 = 10%).
Config.CameraBrokenDamage = false           -- When the chamber breaks, it makes a spark that removes 20 HP.

Config.CameraItem = 'camera'                -- Choose the name of the camera item.
Config.BrokenCameraItem = 'broken_camera'   -- Choose the name of the broken camera item.
Config.RepairCameraItem = 'camera_module'   -- Choose the name of the repair item.
Config.PhotoItem = 'photo'                  -- Choose the name of the photo item.

--[[  
    Exclusive configuration only for qs-inventory!
    With this configuration you can make the durability of 
    the camera decrease as you use it, until it breaks. 
    This does not affect the system if you are electrocuted 
    when using it, if it breaks it cannot be repaired. 
    
    Example, Config.DecayToUseRate = 1 = 100 shots.
]]

Config.DecayToUse = true    -- Only for qs-inventory, read above!
Config.DecayToUseRate = 1   -- Decay level due to use, the item has 100 durability, therefore 1 = 100 shots.

-- Debug mode:
Config.Debug = false

Last updated