[ESX] [Supermarket]

fixed… just didint put “,” at the end of my lines and i wasted hour of my life to this xdddd

Same name in the png images. all in database and nothing is shown. help
files {
‘html/ui.html’,
‘html/styles.css’,
‘html/scripts.js’,
‘html/debounce.min.js’,
‘html/iransans.otf’,

'html/img/bread.png',
'html/img/fixkit.png',
'html/img/soda.png',
'html/img/banana.png',
'html/img/orange.png',
'html/img/donut.png',
'html/img/fixkit.png',
'html/img/energy.png',
'html/img/jusfruit.png',
'html/img/close.png',
'html/img/croquettes.png',
'html/img/water.png',
'html/img/plus.png',
'html/img/minus.png',
'html/img/budweiser.png',
'html/img/corona.png',
'html/img/medalla.png',
'html/img/heneken.png',
'html/img/medalla_lata.png',
'html/img/lays.png',
'html/img/kitkat.png',
'html/img/fritos.png',
'html/img/doritos.png',
'html/img/donut2.png',
'html/img/twix.png',
'html/img/ruffles_original.png',
 'html/img/funyuns.png'

items

end shops to…

esx_supermarket |
| html |
| img

Same name in the png images. all in database and nothing is shown. help

** no message of error, once erased the name of lua only shows the water and the bread as soon as you add something everything disappears.**

Error when i try to buy something…


Thats little red Errors in my console.
I tried to fix it but i cant! Please help me my server opening March 15.

Have you tried installing a clean version and edit your DB the right way?

if so and it didn’t work, please send your code

I reinstalled DB, and the script same error. I dont modified anything.
Start config: resources.cfg (6.2 KB)

Try mine…this one is working

esx_supermarket.rar (466.0 KB)

3 Likes

how to can i fix this?

how do i open that interface
it has a hotkey to open ???
anyone talk me how to open that supermarket interface

try this one [ESX] [Supermarket]

can you told me how to open supermarket interface?? plz

1 Like

1 Что делать захожу в магазин и там ничего нет проверил items в программе HeidiSQL там тоже ничего нет помогите пожалуйста
2 What to do I go to the store and there is nothing there I checked items in the program HeidiSQL there is also nothing there please help

Add those to your HeidiSQL,

Table: shops

image

Hi all, I have a problem with buying water in the shop at the bottom right - showing value - and not +. The money is deducted and the water is added to the inventory, but badly written in the lower right corner.

Thank you all.

I put everything in the food appeared but I can 't buy it please help Me

I have this issue too, unsure what it is…

Hello again, I hope you are well,
I have the following problem,
I have been able to use more food in the store, the problem is that they will appear as items when you buy them and you cannot eat them.

some idea of the solution.

2 Likes

I have the same problem … I also need advice.
For example, more food and marijuana can not be smoked.
would anyone help?

So I already know how to add …
resources / [esx] /esx_basicneeds/server/main.lua
you add this`
for drinking

ESX.RegisterUsableItem('energy', function(source)
	local xPlayer = ESX.GetPlayerFromId(source)

	xPlayer.removeInventoryItem('energy', 1)

	TriggerClientEvent('esx_status:add', source, 'thirst', 200000)
	TriggerClientEvent('esx_basicneeds:onDrink', source)
	TriggerClientEvent('esx:showNotification', source, _U('used_energy'))
end)

you change the name according to the database for me , energy , is an energy drink
for food:

ESX.RegisterUsableItem('bread', function(source)
	local xPlayer = ESX.GetPlayerFromId(source)

	xPlayer.removeInventoryItem('bread', 1)

	TriggerClientEvent('esx_status:add', source, 'hunger', 200000)
	TriggerClientEvent('esx_basicneeds:onEat', source)
	TriggerClientEvent('esx:showNotification', source, _U('used_bread'))
end)

you turn bread into the food you want to use…

but i need to smoke marijuana how to set it up if anyone knew … i tried like eating and drinking but without animation and effect

1 Like

I haven’t tried to smoke yet, but I think it’s a different script,
But I will be looking for today. I write to you if I find it. Thanks for the information I will try.

i already have smoking :slight_smile: eventually write i will send it to you

1 Like