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

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

Maybe but just maybe, removing the item on the database on the shops table would work, because that table on the database is the one that contain the items in all shops xD

Yea tried that and my server went crazy. I dont know why, but removing this focks everything up…

1 Like

You just need to delete some of the items in the shops table, and in the config delete the same ones should work🤔

Jumelles was my script for the binoculars, if want to rename or remove something, you have to remove the items from the “shops” table in the database, not the entire table only the lines where the jumelles appears or the item that you want to delete, them in the config.lua of the shops delete every line that says jumelles, i really don’t know what you’re missing or doing wrong XD

and check if you have the jumelles part inside basic needs it can be from there xD

1 Like

Just allot of things i still need to learn. Dont buy a item remove it from the DB and leave it on your character. The server does not know what to do with it. So it goes in flip mode :smiley:

Removed jumelles and everything is fine now :slight_smile:

1 Like

Hi, I have problems with my shops. I can’t seem to purchase anything, and in the console it says the following:

" SCRIPT ERROR: @esx_shops/client/main.lua:30: attempt to index a nil value (field ‘?’) "

How do I fix this?

hey bro anything work fine but cant translate

Error parsing script @esx_basicneeds/locales/br.lua in resource esx_basicneeds: @esx_basicneeds/locales/br.lua:1: unexpected symbol near ‘<\239>’
Failed to load script locales/br.lua.
Error parsing script @esx_basicneeds/server/main.lua in resource esx_basicneeds: @esx_basicneeds/server/main.lua:1: unexpected symbol near ‘<\239>’
Failed to load script server/main.lua.
Started resource esx_basicneedsCapture

still not working for me, any solution ?

i installed it right and some food doesnt show up and u cant use the food or drinks please help