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'
}
},
['billingmachine'] = {
label = 'Billing Machine',
weight = 250,
stack = true,
consume = 0,
close = true,
description = "",
client = {
export = 'kartik-banking.openBillingMachine'
}
},
['fleeca_credit'] = {
label = 'Credit Card',
weight = 100,
},
['fleeca_debit'] = {
label = 'Debit Card',
weight = 100,
},
['swiss_credit'] = {
label = 'Credit Card',
weight = 100,
},
['swiss_debit'] = {
label = 'Debit Card',
weight = 100,
},
['cheque_book'] = {
label = 'Cheque Book',
weight = 50,
server = {
export = 'kartik-banking.useChequeBook'
}
},
['cheque'] = {
label = 'Cheque',
weight = 50,
server = {
export = 'kartik-banking.useCheque'
}
},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 = "",
},
billingmachine = {
name = 'billingmachine',
label = 'Billing Machine',
weight = 250,
type = 'item',
image = 'billingmachine.png',
unique = true,
shouldClose = true,
description = "",
},
fleeca_credit = {
name = 'fleeca_credit',
label = 'Credit Card',
weight = 250,
type = 'item',
image = 'fleeca_credit.png',
unique = true,
shouldClose = true,
description = "",
},
fleeca_debit = {
name = 'fleeca_debit',
label = 'Debit Card',
weight = 250,
type = 'item',
image = 'fleeca_debit.png',
unique = true,
shouldClose = true,
description = "",
},
swiss_credit = {
name = 'swiss_credit',
label = 'Credit Card',
weight = 250,
type = 'item',
image = 'swiss_credit.png',
unique = true,
shouldClose = true,
description = "",
},
swiss_debit = {
name = 'swiss_debit',
label = 'Debit Card',
weight = 250,
type = 'item',
image = 'swiss_debit.png',
unique = true,
shouldClose = true,
description = "",
},
cheque_book = {
name = 'cheque_book',
label = 'Cheque Book',
weight = 50,
type = 'item',
image = 'cheque_book.png',
unique = true,
shouldClose = true,
description = "Cheque Book for signing cheques",
},
cheque = {
name = 'cheque',
label = 'Cheque',
weight = 50,
type = 'item',
image = 'cheque.png',
unique = true,
shouldClose = true,
description = "A signed cheque",
},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'
},
},
['billingmachine'] = {
['name'] = 'billingmachine',
['label'] = 'Billing Machine',
['weight'] = 250,
['type'] = 'item',
['image'] = 'billingmachine.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['object'] = nil,
['description'] = 'Billing system',
['client'] = {
export = 'kartik-banking.openBillingMachine'
},
},
['cheque_book'] = {
['name'] = 'cheque_book',
['label'] = 'Cheque Book',
['weight'] = 50,
['type'] = 'item',
['image'] = 'cheque_book.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['object'] = nil,
['description'] = 'Cheque Book for signing cheques',
},
['cheque'] = {
['name'] = 'cheque',
['label'] = 'Cheque',
['weight'] = 50,
['type'] = 'item',
['image'] = 'cheque.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['object'] = nil,
['description'] = 'A signed cheque',
},By following these steps and adding the correct configurations, your Banking items will be ready for use in your Kartik-Banking system!