📃Config

Config = {}

Config.Framework = "QBCore" -- "QBCore" or "ESX"
Config.Core = "qb-core" -- Your qb-core folder name ( If you use ESX ignore this )
Config.Target = "qb-target" -- "qb-target" or "ox_target"
Config.Inventory = "oldqb" -- "oldqb" or "newqb" or "ox" or "qs" or "tgiann" or "codem" ( open code on s_utils.lua )
Config.Notify = "ox" -- "qb" or "okok" or "ox" ( Open code on config_functions.lua )
Config.Permissions = "admin" -- The permission level required to use the command
Config.AutoDatabase = true -- Automatically create the database if it doesn't exist
Config.Debug = true -- Enable debug mode for more detailed logs
Config.Language = "en" -- Language for the storage system (en, fr, de, es, pt )

Config.PoliceJobs = { -- Jobs can lock/unlock storages
    "police",
    "sheriff",
    "fbi",
}

-- Props Settings --
Config.PropsAvailable = { -- List of available props to use when create a new storage
    { label = "Small Crate", prop = "prop_box_wood02a" },
    { label = "Metal Locker", prop = "prop_ld_int_safe_01" },
    { label = "Tool Chest", prop = "prop_toolchest_01" },
}
-- Props Settings --


-- Selling Settings --
Config.Selling = {
    enable = true, -- Enable or disable selling storage
    tax = 0.20, -- 20% tax on selling
}
-- Selling Settings --


-- Storage Settings --
Config.StorageSettings = {
    minWeight = 1, -- Minimum weight for storage
    maxWeight = 50000, -- Maximum weight for storage
    minSlots = 1, -- Minimum slots for storage
    maxSlots = 100, -- Maximum slots for storage
}
-- Storage Settings --


-- Admin Commands --
Config.Commands = {
    [1] = { -- Admin Command
        command = "createstorage",
        description = "Create a storage",
    },
    [2] = { -- Admin Command
        command = "storagelist",
        description = "List all storages",
    }
}
-- Admin Commands --


-- Robbing Settings --
Config.Robbing = {
    enable = true, -- Enable or disable robbing storage
    cooldown = 600, -- Cooldown time in minutes
    item = "lockpick", -- Item required to rob storage
    police = 1, -- Number of police required to rob storage
    minigame = function()
        local success = lib.skillCheck({'easy', 'easy', {areaSize = 60, speedMultiplier = 1}, 'hard'}, {'w', 'a', 's', 'd'})
        if success then
            return true
        else
            return false
        end
    end
}
-- Robbing Settings --

-- Password Restrictions --
Config.Passwords = {
    min = 4, -- Minimum password length
    max = 10, -- Maximum password length
    blacklisted = { -- Blacklisted passwords
        "1234",
        "password",
        "qwerty",
        "abcd",
    },
}
-- Password Restrictions --

Last updated