Installation

Download the latest release from here: Releases


Server CFG

## overextended
start oxmysql
start ox_lib
start ox_target
start ox_inventory

## standalone
start mi_items

Copy these files into the ox_inventory/data folder:

  • animations.lua

  • weapons.lua

  • items.lua

  • crafting.lua

  • shops.lua


Copy the lines from the add_client.lua and add_containers.lua to the client.lua and containers.lua in the ox_inventory/modules/items folder:

-- line 85
local ox_inventory = exports[shared.resource]
-----------------------------------------------------------------------------------
-- Clientside item use functions
-----------------------------------------------------------------------------------

INSERT CODE BETWEEN HERE

-----------------------------------------------------------------------------------

exports('Items', function(item) return getItem(nil, item) end)
exports('ItemList', function(item) return getItem(nil, item) end)

return Items

Copy the lines from the add_containers.lua to the containers.lua in the ox_inventory/modules/items folder:

-- line 46
	containers[itemName] = {
		size = { properties.slots, properties.maxWeight },
		blacklist = blacklist,
		whitelist = whitelist,
	}
end

-----------------------------------------------------------------------------------

INSERT CODE BETWEEN HERE

-----------------------------------------------------------------------------------

return containers

Copy the images to the ox_inventory/web/images folder


Last updated