QS_INVENTORY = GetResourceState('qs-inventory') == 'started' if QS_INVENTORY then Config.maxInventoryWeight = 120000 Config.maxInventorySlots = 41 Config.imagePath = 'https://cfx-nui-qs-inventory/html/images/' -- Inventory itembox message -- This box appears when adding or deleting items -- In the case of OX inventory, for example, it appears by default, so it can be disabled here Config.itemBox = false -- Sets how the inventory stores the weight of the stacks. -- for example, ox_inventory slot.weight contains the weight of the entire stack. (slot.sumWeight = slot.weight) -- other inventories return the weight of 1 item, so it must be multiplied by the number of items (slot.sumWeight = slot.weight * slot.count) Config.totalStackWeight = true -- false = (slot.sumWeight = slot.weight * slot.count), true = (slot.sumWeight = slot.weight) -- Different inventories index the fields differently. -- E.g: ox_inventory: count; qb_inventory: amount, grid inventory: quantity -- Use: getInventory() result, set the user inventory fields Config.fields = { name = 'name', count = 'amount', slot = 'slot', weight = 'weight', -- metaData fields serial = 'serie' -- metadata.serial } end