config.lua
Full View
Config = {}
-- Choose your framework: 'esx' or 'qbcore'
Config.Framework = 'esx'
-- Enable debug mode
Config.Debug = false
-- Only allow one backpack in a player's inventory
Config.OneBagInInventory = true
-- Backpack configurations
Config.Backpacks = {
['backpack'] = { -- Backpack item name (as defined in your item database)
label = 'Small Backpack', -- Display name shown in inventory
componentId = 5, -- Clothing component ID for the backpack slot (usually 5 = bag)
drawable = {
male = 13, -- Drawable ID for male characters
female = 1 -- Drawable ID for female characters
},
texture = {
male = 8, -- Texture variation for the drawable (0 is usually default)
female = 3
},
slots = 20, -- Number of inventory slots this backpack provides
weight = 60000, -- Maximum weight this backpack can carry (in grams)
blacklist = {
'thermite',
'weapon_pumpshotgun'
} -- Backpack type blacklist items
},
['backpack2'] = {
label = 'Tactical Backpack',
componentId = 5,
drawable = {
male = 32,
female = 45
},
texture = {
male = 4,
female = 4
},
slots = 40,
weight = 90000,
blacklist = {
'thermite',
'weapon_assaultrifle'
}
},
['backpack3'] = {
label = 'Recruit Bag',
componentId = 5,
drawable = {
male = 32,
female = 10
},
texture = {
male = 0,
female = 0
},
slots = 30,
weight = 75000,
blacklist = {
'thermite',
'weapon_assaultrifle'
}
},
}
Config.Notification = true -- ox_lib
-- Notification texts
Config.Strings = {
action_incomplete = 'Backpack System',
one_backpack_only = 'You can only have 1x backpack!',
backpack_in_backpack = 'You can\'t place a backpack within another!',
backpack_in_blacklist = 'You cannot put this item in this backpack!',
}
Last updated