Added weight support (#65)

* Added weight support
This commit is contained in:
Poggu
2019-10-19 19:35:54 +02:00
committed by Samuel
parent 18b16dea70
commit 4efea53b37
2 changed files with 7 additions and 16 deletions
+2 -6
View File
@@ -25,10 +25,6 @@ function OpenShopMenu(zone)
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, {
label = ('%s - <span style="color:green;">%s</span>'):format(item.label, _U('shop_item', ESX.Math.GroupDigits(item.price))),
label_real = item.label,
@@ -39,7 +35,7 @@ function OpenShopMenu(zone)
value = 1,
type = 'slider',
min = 1,
max = item.limit
max = 100
})
end
@@ -166,4 +162,4 @@ Citizen.CreateThread(function()
Citizen.Wait(500)
end
end
end)
end)