Infinite Mod
Discord
  • Infinite Documentation
  • Infinite Resources
    • Inf Garages
      • Installation
      • Config Settings
      • Exports
      • Customized
      • Optional Configuration
  • Inf Anti Bump
    • Installation
    • Config Settings
  • Inf Shop
    • Installation
    • Config Settings
    • Optional Configuration
Powered by GitBook
On this page
  • Items Image
  • Shop Extra config
  • Options a item in the shop
  • Example :
  1. Inf Shop

Optional Configuration

optional configuration for shop

Items Image

All icon default get from Ox Inventory Images, so no need duplicate the image item to this resources. but can customized external link. Edit configuration in config.lua in this resource.

Config.ImagesURL = "https://cfx-nui-ox_inventory/web/images"

Shop Extra config

This config need edit shops.lua located in ox inventory/data/

Options a item in the shop

Options show or hide the item :

Add key require in each item in inventory table. with 2 type can choose table or function

Options make item with category :

Add key category in each item in inventory table. with type string

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 = {
        ...
    }
},
PreviousConfig Settings

Last updated 20 days ago