Any tips if the SQL file won’t work?
Trying to put it in, but it won’t
Can someone help not quite sure how to add items the menu I only get bread and water what am I doing wrong thanks I’m still learning how to do all this help would be great
Also how do I disable this other menu
In your esx_inventoryhud\config.lua file you can find the list of your shops along with the items. Just add the item to your list in the shop you want it added to.
To disable the normal inventory locate to es_extended\client\main.lua and search for the IsControl line and delete it.
Thanks for the inventory thing but with the store inventory everything is there but it doesn’t show in the server at the store for any store
Have you imported the .sql into your database?
The items do not go to the shops table. When you import the sql it adds the items to the items table. Also make sure to disable esx_shops in your server.cfg
Done all that still not showing up and other ideas… if you could add me on discord thatd be great if you dont mind that is Relentless 3038
Nice to know my script is being put to use:joy:
When I try to buy a wepon and drag it to my inventory i get this help me:
SCRIPT ERROR: @esx_inventoryhud/server/main.lua:337: attempt to call a nil value (field ‘hasWeapon’)
need for property
Did you ever figure out exactly what is was? I’m having the same issue with no errors logged, not sure what’s going on.
All other esx_inventoryhud’s work including: property, trunk, and glovebox. The shop & weapon shop seem to be the only ones not working.
Shop is working great, but after i use you inventoryhud my trunk is no longer working?
Register the item usable in your esx_basicneeds
Basicneeds - server main.lua
ESX.RegisterUsableItem(‘sandwich’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('sandwich', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 150000)
TriggerClientEvent('esx_basicneeds:onEatSandwich', source)
TriggerClientEvent('esx:showNotification', source, _U('used_sandwich'))
end)
ESX.RegisterUsableItem(‘chocolate’, function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('chocolate', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_basicneeds:onEatChocolate', source)
TriggerClientEvent('esx:showNotification', source, _U('used_chocolate'))
end)
thank you it works
anyone else having the problem where if the police revoke weapons license, it still lets you access the buy weapons menu?
How can i change the Give Use and Drop buttons Languaje






