m-Scripts
  • m-Scripts Documentation
  • QBCore
    • Jobs
      • 🚗[QB] TunerJob
        • đŸ› ī¸Installation
        • ❓Common Questions
        • đŸ—’ī¸Config
      • 🍞[QB] BeanMachine
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🍔[QB] Burgershot
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🍈[QB] CoolBeans
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🚚[QB] Deliveries
        • đŸ› ī¸Installation
        • 📃Config
          • 📃config_functions
      • 🍎[QB] Farming
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🐟[QB] Fishing
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • 📄config_diving
          • 📄config_fishingnet
          • 📄config_fishingrod
          • 📄config_functions
          • 📄config_language
          • 📄config_seashells
          • 📄config_tournament
          • 📄config_upgrades
      • 🚛[QB] Garbage
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ—ī¸[QB] GoldRush
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • â›°ī¸[QB] Hunting
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸĒĩ[QB] Lumberjack
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • â›ī¸[QB] Mining
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ›ĸī¸[QB] Oil Factory
        • đŸ› ī¸Installation
        • ❓Common Questions
        • đŸ—’ī¸Config
      • ☕[QB] Pond Coffee
        • đŸ› ī¸Installation
        • ❓Common Questions
        • đŸ—’ī¸Config
      • 🚚[QB] Trucker
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • 📄Functions
          • 📄Language
      • đŸĨƒ[QB] Vanilla
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ›ģ[QB] Mechanic Run
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸĨƒ[QB] Bahamas
        • đŸ› ī¸Installation
        • 📄Config
      • đŸ”Ģ[QB] Ammunation
        • đŸ› ī¸Installation
        • 📄Config
      • 🐟[QB] Pearls
        • đŸ› ī¸Installation
        • 📄Config
      • 🔓[QB] Impound
        • đŸ› ī¸Installation
        • 📄Config
        • ✅Garages
      • 🚘[QB] Vehicleshop
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Job
          • Language
        • ❓Common Questions
    • General
      • đŸ•ī¸[QB] Camping
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Consumables
          • Language
      • 🎄[QB] Christmas
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🎃[QB] Halloween
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 📔[QB] Insurance
        • đŸ› ī¸Installation
        • đŸ–Ĩī¸Compatibilities
        • đŸ—’ī¸Config
        • 🔁Server-Exports
      • đŸ˜ī¸[QB] Vespucci
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Brewery
          • Digital Den
          • Masquerade
          • Pro Bikes
      • đŸ–ī¸[QB] Beach Activities
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🚘[QB] Car Rental
        • đŸ› ī¸Installation
        • 📄Config
        • đŸ–Ĩī¸Compatibilities
      • âœˆī¸[QB] Sky Racing
        • đŸ› ī¸Installation
        • 📄Config
      • 🚘[QB] Car Wash
        • đŸ› ī¸Installation
        • 📄Config
      • đŸĒ¨[QB] Grinder
        • đŸ› ī¸Installation
        • 📄Config
      • 📹[QB] SpyCams & CCTV's
        • đŸ› ī¸Installation
        • 📄Config
      • 🏠[QB] Motel
        • đŸ› ī¸Installation
        • 📄Config
        • đŸ–Ĩī¸Compatibilities
      • đŸšī¸[QB] Job Center
        • 📄Config
      • đŸ› ī¸[QB] Crafting
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Language
    • Illegal
      • đŸ”Ģ[QB] Gangs
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 🔔[QB] Drug Selling
        • đŸ—’ī¸Config
      • 🌱[QB] Drugs
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ¯[QB] Craft Potion
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ…ąī¸[QB] Blackmarket
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • config_functions
          • config_language
      • 🚗[QB] Car Thief
        • đŸ—’ī¸Config
      • 🏠[QB] House Robbery
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 💎[QB] Jewelry
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Functions
          • Language
      • ÂŽī¸[QB] Mini Robberys
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 💰[QB] MoneyWash
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Functions
          • Language
      • đŸ”Ģ[QB] Rob NPC
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸƒâ€â™‚ī¸[QB] Runs
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Functions
          • Language
      • â›Ŋ[QB] Steal Fuel
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Functions
          • Language
      • đŸŦ[QB] Store Robbery
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Functions
          • Language
      • đŸĒ›[QB] Scrapyard
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • Functions
          • Language
      • 👾[QB] Territories
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
      • 🏨[QB] GoPostal
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • ESX
    • Jobs
      • 🚗[ESX] Tunerjob
        • ❗Dependencies
        • đŸ› ī¸Installation
          • â„šī¸OX-Inventory
          • â„šī¸QS-Inventory
        • đŸ—’ī¸Config
          • BlacklistVehicles
          • Craft
          • Functions
          • Language
          • Targets
          • Wraps
          • Events
        • ❓Common Questions
      • 🚚[ESX] Trucker
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • 📄Functions
          • 📄Language
      • đŸĒĩ[ESX] Lumberjack
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ›ģ[ESX] Mechanic Run
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • â›ī¸[ESX] Mining
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸŽŖ[ESX] Fishing
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Language
          • Diving
          • Fishingnet
          • Fishingrod
          • Seashells
          • Tournament
          • Upgrades
    • General
      • 🚘[ESX] Car Rental
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • 📃[ESX] Insurance
        • đŸ› ī¸Installation
        • đŸ–Ĩī¸Compatibilities
        • 📄Config
        • 🔁 Server-Exports
      • 🚘[ESX] Car Wash
        • đŸ› ī¸Installation
        • 📄Config
      • 📹[ESX] SpyCams & CCTV's
        • đŸ› ī¸Installation
        • 📄Config
        • 🏠[ESX] Motel
          • đŸ› ī¸Installation
          • 📄Config
          • đŸ–Ĩī¸Compatibilities
      • đŸ› ī¸[ESX] Crafting
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Language
      • 🎄[ESX] Christmas
        • đŸ› ī¸Installation
        • 📄Configs
    • Illegal
      • đŸ”Ģ[ESX] Gangs
        • đŸ› ī¸Installation
        • 📄Config
        • ❓Common Questions
      • đŸ…ąī¸[ESX] Blackmarket
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
          • config_functions
          • config_language
      • 🏨[ESX] GoPostal
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • Both Framework
    • Scripts
      • 🚗Car Rebuild
        • đŸ› ī¸Installation
        • đŸ—’ī¸Config
      • đŸ—ēī¸City Guide
        • đŸ› ī¸Installation
        • 📄Config
          • Functions
          • Language
      • 🛒Shops
        • 📄Config
        • đŸ› ī¸Installation
      • 🔁Reputation
        • 📄Config
        • đŸ› ī¸Installation
        • â‰ī¸Exports & Commands
          • Server Exports
          • Commands
      • 💤AFK System
        • 📄Configs
        • đŸ› ī¸Installation
      • 🚗Garages
        • đŸ› ī¸Installation
        • 📑User Guide
          • Create Garages
          • Create Private Garage
          • Impound & Auctions
          • Add vehicle to gang/job
          • Commands
      • âœˆī¸Airplane Job
        • đŸ› ī¸Installation
        • 📃Configs
        • â„šī¸Exports
      • 📋Scoreboard
        • 📃Config
      • đŸ“ĻStorageUnits
        • đŸ› ī¸Installation
        • 📃Config
Powered by GitBook
On this page
  1. Both Framework
  2. Scripts
  3. StorageUnits

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 --
PreviousInstallation

Last updated 22 days ago

đŸ“Ļ
📃