Configuration
Everything is in config.lua.
General
| Option | Default | What it does |
|---|
Config.Debug | false | Prints every add, remove and refusal, and why the inventory did not open |
Player bag
| Option | Default | What it does |
|---|
Config.MaxSlots | 41 | Slots a player carries |
Config.MaxWeight | 120000 | Weight a player carries (on ESX the weight comes from ESX) |
Stashes and dropped bags
| Option | Default | What it does |
|---|
Config.StashSize | { slots = 50, maxweight = 400000 } | Size of a stash |
Config.DropSize | { slots = 30, maxweight = 100000 } | Size of a dropped bag |
Config.DropTime | 0 | Minutes a dropped bag lasts; 0 keeps it until a restart |
Config.ItemDropObject | 'prop_med_bag_01b' | Prop used for a dropped bag |
Config.Drops | true | Leave bags on the ground when something is dropped |
Config.SaveInterval | 30 | Seconds between stash saves; stashes also save when closed |
Vehicles
Config.VehicleStorage sets trunk and glovebox size by GTA vehicle class. default covers any class not listed.
Config.VehicleStorage = {
default = { trunkSlots = 30, trunkWeight = 38000, gloveboxSlots = 5, gloveboxWeight = 10000 },
[1] = { trunkSlots = 35, trunkWeight = 50000, gloveboxSlots = 5, gloveboxWeight = 10000 },
[8] = { trunkSlots = 10, trunkWeight = 15000, gloveboxSlots = 0, gloveboxWeight = 0 },
[12] = { trunkSlots = 45, trunkWeight = 90000, gloveboxSlots = 5, gloveboxWeight = 12000 },
}
Classes 0 to 20 are listed in the file (Compacts, Sedans, SUVs, Coupes, Muscle, Sports classics, Sports, Super, Motorcycles, Off-road, Industrial, Utility, Vans, Cycles, Boats, Helicopters, Planes, Service, Emergency, Military, Commercial).
Config.VehicleAccess sets how trunks and gloveboxes open:
| Option | Default | What it does |
|---|
how | 'tab' | 'tab': the inventory key opens the trunk at the back of a car, or the glovebox when seated. 'prompt': a help text line, opened with key. 'target': qb-target or ox_target option on the car |
key | 51 | Control for 'prompt' (E) |
near | 2.5 | How close the player has to be, in meters |
Keys
| Option | Default | What it does |
|---|
Config.Keybinds.Open | 'TAB' | Opens the inventory |
Config.Keybinds.Hotbar | 'Z' | Shows the hotbar |
Players can rebind these in the pause menu. On a controller the inventory opens with LB.
Weapons
| Option | Default | What it does |
|---|
Config.UseWeaponResource | true | Hands ammunition and attachments off to the weapon resource |
Config.WeaponResource | 'qb-weapons' | The weapon resource to use |
Config.QuickSlots | true | Controller quick-use row of four slots on a held button |
Look
| Option | Default | What it does |
|---|
Config.Skin | 'auto' | Starting look. 'auto' uses the framework's own (QBCore red, ESX yellow), or name one: 'qb', 'esx', or a shop look. Players can still change it in the panel |
Config.Dim | 0.3 | How dark the screen is behind the open inventory, 0 clear to 1 solid |