This commit is contained in:
ElPumpo
2018-11-11 11:24:36 +01:00
parent 093d5535a6
commit ed3c2f54c7
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ function OpenBuyLicenseMenu(zone)
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'shop_license', {
title = _U('buy_license'),
elements = {
{ label = _U('yes', ('<span style="color: green;">%s</span>'):format((_U('shop_menu_item', ESX.Math.GroupDigits(Config.LicensePrice)))), value = 'yes' },
{ label = _U('no'), value = 'no' }
{ label = _U('no'), value = 'no' },
{ label = _U('yes', ('<span style="color: green;">%s</span>'):format((_U('shop_menu_item', ESX.Math.GroupDigits(Config.LicensePrice))))), value = 'yes' },
}
}, function(data, menu)
if data.current.value == 'yes' then
+2 -2
View File
@@ -87,10 +87,10 @@ AddEventHandler('esx_weashop:buyItem', function(weaponName, zone)
end)
function GetPrice(weaponName, zone)
local result = MySQL.Sync.fetchAll('SELECT 1 FROM weashops WHERE zone = @zone AND item = @item', {
local result = MySQL.Sync.fetchAll('SELECT price FROM weashops WHERE zone = @zone AND item = @item', {
['@zone'] = zone,
['@item'] = weaponName
})
return result[1].price
end