Config Preview

Version 1.1 Updates
--- Durations for the time it takes to open or close the secure box in seconds
Config.Duration = {
    open = 1.0, 
    close = 1.5
}

--- Fastest and Longest value for time it should take to lock pick.
--- Allows for different times of lock picking can set both numbers to the same value to have a constant value
Config.LockpickTime = {
    MinSpeed = 5.0, -- time in seconds 
    MaxSpeed = 8.0  -- time in seconds 
}

--- The Boxes 
Config.Box = {
    ['secbox1'] = {             
        slots = 36,             -- Number of slots in stash when open
        size = 200000,          -- Max Amount of weight in stash when open
        locked = true,          -- true/false for if lock on box
        CreateName = true,      -- true/false if creating name is active 
    },
    ['secbox2'] = {             
        slots = 36,             -- Number of slots in stash when open
        size = 200000,          -- Max Amount of weight in stash when open
        locked = false,         -- true/false for if lock on box  
        CreateName = false,     -- true/false if creating name is active
    }

}

--###############################
--- USE EITHER THE ALLOWLIST OR
--- THE BLACKLIST WHICHEVER SUITES
--- YOUR NEEDS BETTER DONT USE TOGETHER
--###############################

--- Control what you want to be able to go into the box
Config.AllowListSecbox1 = { -- GREY BOX
    active = false,  -- If active only items on list can go into the box
    list = {        -- List has to be the item name for qb-core/shared/item.lua
        'empty_evidence_bag',
        'filled_evidence_bag',
        'nikon',
        'dnatestkit',
        'gsrtestkit',
        'breathalyzer',
        'accesstool',
    }
}

Config.AllowListSecbox2 = {  -- GREEN BOX
    active = true,  -- If active only items on list can go into the box
    list = {        -- List has to be the item name for qb-core/shared/item.lua
        'empty_evidence_bag',
        'filled_evidence_bag',
        'nikon',
        'dnatestkit',
        'gsrtestkit',
        'breathalyzer',
        'accesstool',
    }
}

--- Control what you dont want to be able to go into the box 
Config.BlackListSecbox1 = { -- GREY BOX
    active = false,     -- If active these can't go into the box anything else can
    list = {            -- List has to be the item name for qb-core/shared/item.lua
        '',
    }
}

Config.BlackListSecbox2 = {  -- GREEN BOX
    active = false,     -- If active these can't go into the box anything else can
    list = {            -- List has to be the item name for qb-core/shared/item.lua
        '',
    }
}

--- Limit what job can't use the lockpick to open a case  
Config.Whitelist = { -- BOTH LOCKPICKS
    active = false,      -- If active jobs listed can't use the lock pick to open the cases 
    jobs = {
        'police'
    },
}

--- Decide if the case can be used from anywhere in the inventory by dragging to use or only from hotkeys
Config.Hands = {    
    active = false,      -- If true can only open the case with Hotkeys
    slots = { 
     1, 2, 3, 4, 5, 41, -- If inventory isn't standard size anymore adjust the 41 to be the last slot available  
    },
}
Version 1.0 Original Release OUTDATED
Config = Config or {}

--- Durations for the time it takes to open or close the secure box in seconds
Config.Duration = {
    open = 1.0, 
    close = 1.5
}

--- Fastest and Longest value for time it should take to lock pick.
--- Allows for different times of lock picking can set both numbers to the same value to have a constant value
Config.LockpickTime = {
    quicknessMin = 5.0, -- time in seconds 
    quicknessMax = 8.0  -- time in seconds 
}

--- The Boxes 
Config.Box = {
    ['secbox1'] = {             
        slots = 36,             -- Number of slots in stash when open
        size = 10000,           -- Max Amount of weight in stash when open
        locked = 'pincode',    
    },
    ['secbox2'] = {             
        slots = 36,             -- Number of slots in stash when open
        size = 10000,           -- Max Amount of weight in stash when open
        locked = 'pincode',    
    }

}
--############################
-- NO PIN CODE EXAMPLE 
--[[
    ['secbox1'] = {          
    slots = 36,             -- Number of slots in stash when open
    size = 10000,           -- Max Amount of weight in stash when open
    },
--]]
--############################


--###############################
--- USE EITHER THE ALLOWLIST OR
--- THE BLACKLIST WHICHEVER SUITES
--- YOUR NEEDS BETTER DONT USE TOGETHER
--###############################

--- Control what you want to be able to go into the box
Config.AllowList = {
    active = true,  -- If active only items on list can go into the box
    list = {        -- List has to be the item name for qb-core/shared/item.lua
        'empty_evidence_bag',
        'filled_evidence_bag',
        'dnatestkit',
        'gsrtestkit',
        'breathalyzer',
    }
}

--- Control what you dont want to be able to go into the box 
Config.BlackList = {
    active = false,     -- If active these can't go into the box anything else can
    list = {            -- List has to be the item name for qb-core/shared/item.lua
        '',
    }
}

--- Limit what job can't use the lockpick to open a case  
Config.Whitelist = {
    active = false,      -- If active jobs listed can't use the lock pick to open the cases 
    jobs = {
        'taxi'
    },
}

--- Decide if the case can be used from anywhere in the inventory by dragging to use or only from hotkeys
Config.Hands = {    
    active = true,      -- If true can only open the case with Hotkeys
    slots = { 
     1, 2, 3, 4, 5, 41, -- If inventory isn't standard size anymore adjust the 41 to be the last slot available  
    },
}

Last updated