Items
In this section, we’ll guide you through configuring the Kartik-Banking items for three different inventory systems: ox_inventory ,qb-inventory and qs-inventory. Below are the item configurations you’ll need to add to your server to enable the POS Machine item in your inventory system.
1. ox_inventory Configuration
For ox_inventory, you need to add the following configuration in your ox_inventory/data/items.lua
file.
['pos'] = {
label = 'POS Machine',
weight = 250,
stack = true,
consume = 0,
close = true,
description = "",
client = {
export = 'kartik-banking.openBusinessTerminal'
}
},
2. qb-inventory Configuration
For qb-inventory, add the following configurations in your qb-core/shared/items.lua
file.
pos = {
name = 'pos',
label = 'POS Machine',
weight = 250,
type = 'item',
image = 'pos.png',
unique = true,
shouldClose = true,
description = "",
},
3. qs-inventory Configuration
For qs-inventory, add the following configurations in your qs-inventory/shared/items.lua
file.
['pos'] = {
['name'] = 'pos',
['label'] = 'POS Machine',
['weight'] = 250,
['type'] = 'item',
['image'] = 'pos.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['object'] = nil,
['description'] = 'POS system',
['client'] = {
export = 'kartik-banking.openBusinessTerminal'
},
},
By following these steps and adding the correct configurations, your Banking items will be ready for use in your Kartik-Banking system!
Last updated