Changing value of food/water regain on items? ESX_SHOP

So, I have been trying to find out where to set the amount of food/water gain when using an item in ESX_SHOP but I can’t seem to find out on how to do it.

I know that I can easly add an item to ESX_SHOP in the database table, but where do I change the value of that item. How much water and food regain that the item should give the player?

If special items with different regain options needs to be run trough a script that connects with items in the database, please provide a script, thanks!

Otherwise I will have to develope my own scripts, however, im sure there are scripts out there doing this already. I have seen it on other servers. I just can’t seem to find any with just food.
I dont want to switch shop plugin.

I need that too,if can you help me ı get appreciated :slight_smile:

Hi. You can change it at esx_basicneeds server.lua

TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)

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)

200000 is the amount You can change. Sorry for my english

1 Like

1 000 000 its ful food or water