Configuration

All configurations can be found in config.lua file

Config.UpdateCheck = true -- enable or disable Vesrion check for updates 
Config.target = false -- enable/disable qb-target third eye 
Config.img = "qb-inventory/html/images/" -- Set this to your inventory 
Config.changeNamePrice = 2500 -- Price for change market name 
Config.deliveryTime = 1200 -- seconds 1200 seconds = 20 minute 
Config.MarketSellPercentage = 30 -- percentage % sell market 
Config.defaultSalary = 20 -- this is default salary for employees when they deliver boxes , this value will be changed when the market owner put new salary on his market and the salary will be paid from market money

discord logs and webhooks

create a log room in your discord server then create a webhook and add it to config.lua

--// discord weboohks START\\----
Config.WebHook = "" -- put the webhook here
Config.Buynewmarket = "Buy New market"
Config.Sellmarket = "Sell Market"
Config.ChangeMarketName = "Changed Market Name"
Config.OrderShipments = "Order Shipments"
Config.PurchaseItems = "Purchase Items"
Config.BuyingColor = "697900" -- Green
Config.SellingColor = "16711680" -- red
Config.BotName = "My Custom server" -- bot name
Config.BotLogo = "" -- put your server logo just for the discord bot
--// discord weboohks END\\----

you can add more market center and warehouses or even new market location

how to

how to add new items?

open config.lua and search for Config.shopItems and add your box items like this

{ BoxItem = 'phonebox', SingleItem = 'phone', BoxPrice = 1000, Boxamount = 10, MaxBox = 10},

also add the box item and his item into qb-core/shared/items.lua and dont forget to upload the image too in your inventory BoxItem present the boxes that can be ordered from warehouses SingleItem present what the box item can give when owner add the box in his market BoxPrice how much money should owner pay to order the box from warehouse Boxamount how much single items can get from the box MaxBox maximum boxes ordred at once

how can i add new market/shop ?

  • first open config.lua and search for Config.markets there are 19 markets by defaults add new location and dont forget to change the id to 20 or 21 based on how markets you have , check this example

  • run this sql in your phpmyadmin

INSERT INTO `ra_ownedmarkets` (`id`, `citizenid`, `marketid`, `marketmoney`, `marketvalue`, `marketname`, `employe_1`, `employe_2`, `employe_3`, `employe_4`) VALUES
(20, '0', 20, 0, 1000000, NULL, NULL, NULL, NULL, NULL);

20 is the ID in sql , 0 is citizenid thats mean no one bought it yet , 20 is the marketid , 0 is the market money , 1000000 is the market value , the other null for employee and must be null

how can i change market value prices ?

if you want to change the market prices open your database HeidiSQL or phpmyadmin choose ra-ownedmarkets table and change the vlaue of marketvalue by doubleclick on it

Last updated