(UPDATE-11/12/2019) [Release] [ESX] Shops with bars (V.1.7) (OLD ESX)

I did that, and every bar is independent from the others, I just need to figure out how to use the apropriate header for each one, otherwise, I’d use @BforBrian’s suggestion (my last resource, because I’d end up with 8 copies of the same plugin, not very efficient)

HI,
i used latest version but now I dont see blips to rob store… why?
Thanks

1 Like

@David_Carneiro Anyway to make a shop cost dirty money instead of cash?

1 Like

Robbery script is not included in this one :smiley:

Yes just change some line of codes in the server.lua i think :smiley:

how i can me it work with esx_supermarket

Thanks man! You’re my hero!

1 Like

Hello!

I have an issue with the script and i’m not sure what is causing it.

Here are the pictures.


The issue causes me to not be able to buy items. I open the shop and there are no items shown.

Even though i have items in my database added that work.

Please help?

Error running system event handling function for resource esx_shops: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @esx_shops/server/main.lua:66: attempt to index a nil value (local ‘sourceItem’)
stack traceback:
@esx_shops/server/main.lua:66: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

1 Like

I fixed it, I uninstalled the bad one with bars and installed the default one.

Hey, could I get some help please? I have no other ESX Scripts in apart from the three that this tells you to install and I get this error:

Thanks in advance

1 Like

Add the items in the items database @ZINKS123

USE `essentialmode`;

INSERT INTO `items` (`name`, `label`, `limit`) VALUES
	('sandwich', 'Sandwich', 10),
	('hamburger', 'Hamburger', 10),
    ('cupcake', 'Cupcake', 10),
	('chips', 'Chips', 10),
    ('cocalate', 'Cocalate', 10),
	('icetea', 'Icetea', 10),
    ('coffee', 'Coffee', 10),
	('milk', 'Milk', 10),
    ('cigarett', 'Cigarett', 10),
	('lighter', 'Lighter', 10),
    ('phone', 'Phone', 10),
	('beer', 'Beer', 10),
    ('wine', 'Wine', 10),
	('vodka', 'Vodka', 10),
	('tequila', 'Tequila', 10),
    ('whisky', 'Whisky', 10),
	('gintonic', 'Gintonic', 10),
    ('absinthe', 'Absinthr', 10),
	('champagne', 'Champagne', 10),
    ('cocacola', 'Cocacola', 10),
    ('coffe', 'Coffe', 10),
	('jumelles', 'Jumelles', 10)
;

Im not able to use 99% of the items. Water and bread are working fine but the others i cant use.
I dont get a Use button.

–edit—

Beer is working and i get drunk. How do i fix the other items?

1 Like

When i try to use a item it says Vodka is not unasble

1 Like

You need to get into your esx_basicneeds and add every edible you have if you want it to be used.

I’ll link a post I did in the InventoryHUD because someone had the same issue, rather than me just repeating myself. [Release][ESX] Inventory HUD - 2.3 (properties, trunks, players, ...)

2 Likes

Ow damn im so stupid. Import the basicneeds that is placed in the download file and everything works perfect… :persevere:

2 Likes

you already have an item in your DB with the ID = 1, check the last ID on your table, and start the query with that ID

1 Like

When I press X to stop the animation, nothing happens and my character stays in place smoking. I cant get the animation off. Everything else works, any ideas?

1 Like

Try using esx_animations

Uhhh changing the config does nothing ingame. Tried to remove a item from a shop but still in it. How can i remove it from any shop?

edit

Cache related maybe?

1 Like