mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fix empty shop bug
This commit is contained in:
@@ -27,6 +27,10 @@ Citizen.CreateThread(function()
|
|||||||
|
|
||||||
ESX.TriggerServerCallback('esx_shops:requestDBItems', function(ShopItems)
|
ESX.TriggerServerCallback('esx_shops:requestDBItems', function(ShopItems)
|
||||||
for k,v in pairs(ShopItems) do
|
for k,v in pairs(ShopItems) do
|
||||||
|
if (Config.Zones[k] == nil) then
|
||||||
|
Config.Zones[k] = {}
|
||||||
|
end
|
||||||
|
|
||||||
Config.Zones[k].Items = v
|
Config.Zones[k].Items = v
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user