mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 13:01:34 +00:00
Fixed cheating exploit, empty shop bug, broken translation
This commit is contained in:
+5
-6
@@ -10,25 +10,24 @@ Citizen.CreateThread(function()
|
||||
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
||||
Citizen.Wait(0)
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('onClientMapStart', function()
|
||||
|
||||
|
||||
Citizen.Wait(5000)
|
||||
|
||||
ESX.TriggerServerCallback('esx_shops:requestDBItems', function(ShopItems)
|
||||
for k,v in pairs(ShopItems) do
|
||||
Config.Zones[k].Items = v
|
||||
end
|
||||
end)
|
||||
|
||||
end)
|
||||
|
||||
|
||||
function OpenShopMenu(zone)
|
||||
local elements = {}
|
||||
for i=1, #Config.Zones[zone].Items, 1 do
|
||||
|
||||
local item = Config.Zones[zone].Items[i]
|
||||
table.insert(elements, {
|
||||
label = item.label .. ' - <span style="color: green;">' .. item.price .. '$</span>',
|
||||
label = item.label .. ' - <span style="color: green;">$' .. item.price .. '</span>',
|
||||
realLabel = item.label,
|
||||
value = item.name,
|
||||
price = item.price
|
||||
|
||||
Reference in New Issue
Block a user