Online Market
Instructions on how to download and install the basics of Online Market
Installation #
I am writing down the steps you need to take before using this product on your server.
First of all, if your server is qb infrastructure, you go to \qbcore\shared\items.lua and add the "onlinemarket" item to your server.
onlinemarket = { name = 'onlinemarket', label = 'onlinemarket', weight = 200, type = 'item', image = 'onlinemarket.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'U can Sell & Buy every items this market.' },
Then, you go to the location where your server's inventory is and upload this photo to "qb-inventory/html/images/".

If you want to change the item photo, just change its size to 96x96 and name it "onlinemarket.png".
You can configure whether the courier will bring the product to you, how you will access the market, and many other things through the config.
If Config.Command = false, you can access the menu using the item, if true, you can access the menu using the "market" command.
Config.ItemsImgPath = "qb-inventory/html/images/" -- For ESX ox_inventory/web/images/ or esx_inventory/html/img/items/
Config.Delivery = true --- or false
Config.Command = false --- If you want it to be opened with a command and not with an item, set this to true.
Config.MarketCommand = "market"
Config.Item = "onlinemarket"
Config.Lang = {
["bought"] = "Succesfully Bought.",
["sell"] = "Your item selled in Marketplace",
["deleteitem"] = "You succesfully deleted your item.",
["additemtomarket"] = "You added your item to marketplace",
["error"] = "You can't add your item to market",
["orderontheway"] = "Your order is on the way"
}
If you are using "ESX", it will be enough to do these steps according to the "ESX" infrastructure. Everything else is shown on the config.
Last updated