Added exception handler when invalid item is found, closes #32

This commit is contained in:
ElPumpo
2018-11-19 18:47:26 +01:00
parent 652f8f31fd
commit 25071dfe33
2 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ function OpenShopMenu(zone)
end
table.insert(elements, {
label = item.label .. ' - <span style="color: green;">$' .. item.price .. '</span>',
label = item.label .. ' - <span style="color: green;">$' .. ESX.Math.GroupDigits(item.price) .. '</span>',
label_real = item.label,
item = item.item,
price = item.price,