esx_shops integration - Trsak/esx_inventoryhud GitHub Wiki
esx_shops integration
- Use esx_shops
- Open
esx_shops/client/main.lua
- Find function
OpenShopMenu(zone)
and replace it:
function OpenShopMenu(zone)
local elements = {}
for i = 1, #Config.Zones[zone].Items, 1 do
local item = Config.Zones[zone].Items[i]
if item.limit == -1 then
item.limit = 100
end
table.insert(
elements,
{
name = item.item,
label = item.label,
type = "item_standard",
usable = false,
rare = item.rare,
limit = -1,
price = item.price,
canRemove = false
}
)
end
TriggerEvent("esx_inventoryhud:openShop", zone, elements)
end