No idea, i been trying mess with it for longest seems like this script messes with my stuff idk…
Anyone has a fix or code to maybe also be able to use a buy limit of an item?
at the moment we can buy hundrets of items of the same type
still need help on how to use the items can someone please help
ESX.RegisterUsableItem("burger", function()
print("used burger item")
end)
on the server side
just an idea 99kr but why not help everyone by doing this in a file for them so everyone is not having this issue because i see a lot of comments when people are having this issue and ive tried every stop going to use everything but cant get them to work ive even sdded things to the esx_basic needs and still nothing
Why? This is just a shop script. The items i used in the script was just too show.
is it possible to have the cashier only spawn in based on player proximity?
Can you check your messages? I need help in improving this script. I am having just one thing not working.
It seems that it works. I just pNotify that does not launch: “Could not find resource pnotify.” But the shop is working. it changes from what we usually see.
did you solve the problem???
No, i used another shop 
Are you having the issue that the items are not usable as the fix is mentioned further up in the comments.
You need to use the name in the DB tho and not the name you give the item.
If you struggling I can share my code.
I’m having a similar problem as some others here where i can only throw or return in the menu, i’ve copied and pasted everything reaper_gaming2 said into basicneeds/server/main.lua to no joy, however i’ve also noticed that bread from esx_shops is also having the same problem, i was hoping you could help, heres my pastebin to show what i’ve done.
https://pastebin.com/eeepC4aG
So you are using the incorrect ’ for your naming.
ESX.RegisterUsableItem(‘pizza’, function(source)
Should be
ESX.RegisterUsableItem(‘pizza’, function(source)
Its really subtle but look at your pastebin and you can see the difference between line 55 and line 58 the one is highlighed red while the other isnt. This is showing you that the ’ is incorrect.
Anyone got any idea how to check the limit of an item before allowing it to be added to your basket?
thank you so much korathias, that’s made everything work!
Happy to help.
is there a possibility to put a limit on items? for example limit for water is 5 and people can buy as much as they wants to
I was wondering the same thing.
SCRIPT ERROR: @es_extended/server/classes/player.lua:289: attempt to index a nil value (local ‘item’)
ref (@es_extended/server/classes/player.lua:289)
handler (@99kr-shops/server/main.lua:19)
je peux faire quoi pour avoir mais article