[DISCONTINUED] esx-kr-advanced-shops

esx_addoninventory\server/main.lua

Find it early :
local InventoriesIndex, Inventories, SharedInventories, Items = {}, {}, {}, {}

replace with:

Items = {}
local InventoriesIndex, Inventories, SharedInventories = {}, {}, {}, {}

get solved put as solved.

Can anyone help me with a little problem i have? Its i cant load the pictures :S Set them to 200x200 png but they wont load in-game. I changed the water bottle. The standard works fine but the one i wanna use does not load :frowning:

https://gyazo.com/59651be45f4f0bbb2af768c1b91240b8
https://gyazo.com/972e57d4240bf56d1bf62b94f97933c2
https://gyazo.com/54fca265725625d10b036bfab2541bc8

Hi, im just curious for shops that are not owned, can people buy from there until it is? I’d love to have this script but dont have the man power for people to own shops right now

Run esx_shops and this shop next to each other. You only need to change one thing so it uses both a different database. Im doing the same thing.

Open one shop and when more players want them open another one.

Smart! Thank you!

I have an Issue, I made more Items. The Script works but If I buy these Items I can´t get them from the Shipments. Can anyone help me please?

When i want to buy a shop and as soon as i press enter my mouse freeze… Any idea why ? http://prntscr.com/p4e969

i have a problem. When i go to my owned shpo and want go to order products the menu dissapier and i got this error. Can someone pls help me i need to fix it fast.

Hello i got a LIL problem if i press “Get all your shipments” then nothing happens and my database looks like this.
image

ESX.TriggerServerCallback('esx_kr_shop:getTime', function(time)
	ESX.TriggerServerCallback('esx_kr_shop:getAllShipments', function(items)

	local once = true
	local once2 = true

		for i=1, #items, 1 do

			if time - items[i].time >= Config.DeliveryTime and once2 then
			table.insert(elements, {label = '--READY SHIPMENTS--'})
			table.insert(elements, {label = 'Get all your shipments', value = 'pickup'})
			once2 = false
			end

ESX.UI.Menu.Open(
	'default', GetCurrentResourceName(), 'allshipments',
	{
	  title    = 'Shop',
	  align    = 'left',
	  elements = elements
	},
	  function(data, menu)
		
		if data.current.value == 'pickup' then
			TriggerServerEvent('esx_kr_shops:GetAllItems', id)
		end
	
		end,
		function(data, menu)
		menu.close()
		end)

	end, id)
	end)
end

Something I noticed, if you goto sell an item and put the amount then the price as nothing. Server Console says ER_BAD_NULL_ERROR: Column ‘price’ cannot be null.

The item is lost, it does not put it in the store or back in your inventory. Other than that, the script runs perfectly for me.

i really need to fix it

i have an weard error when i try to entry the property Clien/Main.lue Shop value error

Hi im wondering if anyone can help me.

I have installed this into my server however when i enter the green marker in my shop and hit button E to open shop it also brings up the inventory menu aswell amd causes me to freeze cos i cant close or exit the inventory script.

I cam continue to do stuff in my boss menu lile shipments etc however cant move and can’t close esxinventoryhud.

If i webt into any ammunation first qnd stand in the marker there then go to my shop its fine and doesnt bring up the esx inventory hud script.

Also the red gun blip is there showing all the ammunitions how ever theres no markers inside just the text saying press E to open shop. Altho nothin happens

Any ideas guys.thanks

1 Like

I can’t use the boss menu, it close the window and leaves the mouse on :confused: some help?

did anyone else figure out the problem when you press ‘E’ and nothing happens? and yes i deleted everything from esx_shops

Were you able to locate a fix for the items not crediting to the store?

hello i have a problem win i add a limit in script

can anyone help me please

Is it possible to disable a blip for a new store that I add so I can use it for a Black Market shop?

Nope :frowning:

If there are 4 breads in the store, I will find someone else and buy 3 together. The items in the store will become -2 breads.