I have problem with esx_shop , why i cant eat hamburger etc, but the bread and anything is normal?

where did you download esx_shop from?

from the github

this one i think

You also need to install basicneeds from the same link, because it contains the function that makes hamburger USABLE, because in the original basicneeds script, only bread and water are usable

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

	xPlayer.removeInventoryItem('hamburger', 1)

	TriggerClientEvent('esx_status:add', source, 'hunger', 350000)
	TriggerClientEvent('esx_status:add', source, 'thirst', 70000)
	TriggerClientEvent('esx_basicneeds:onEat', source)
	TriggerClientEvent('esx:showNotification', source, _U('used_hamburger'))
end)

everything is registered but it still wont let me eat it, the option that avaible when i click the food is throw and return

Check out my version of esx_optionalneeds: https://gitlab.com/FiveM-Eagledude4/ESX/esx_optionalneeds

1 Like