Optional Configuration
optional configuration for shop
Items Image
Config.ImagesURL = "https://cfx-nui-ox_inventory/web/images"Shop Extra config
Options a item in the shop
Options show or hide the item :
Options make item with category :
Example :
General = {
name = 'LTD 24/7',
blip = {
id = 59, colour = 69, scale = 0.8
}, inventory = {
{ name = 'burger', price = 10 , category = "food"},
{
name = 'water',
price = 2 ,
-- require : is additional options to show/hide the item in shop. can use function (server side pcall) or table (item amount)
-- require with type function
-- require = function(source, itemName)
-- -- server side code
-- -- example : code
-- local count = exports.ox_inventory:GetItemCount(source, "bandage")
-- return count > 0 and true or false
-- end,
-- require with type table
-- ["item"] = { name = ... (string), amount = ... (number) }
-- require = {
-- ["item"] = {name = "bandage", amount = 2}
-- },
currency = "black_money",
category = "drink"},
{ name = 'cola', price = 10, category = "drink"},
}, locations = {
...
}, targets = {
...
}
},Last updated