This commit is contained in:
ElPumpo
2018-07-07 12:52:03 +02:00
parent a5cef41c5f
commit 88eecdd08b
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -29,6 +29,10 @@ 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 = item.label .. ' - <span style="color: green;">$' .. item.price .. '</span>',
label_real = item.label,
@@ -74,18 +78,14 @@ function OpenShopMenu(zone)
end
AddEventHandler('esx_shops:hasEnteredMarker', function(zone)
CurrentAction = 'shop_menu'
CurrentActionMsg = _U('press_menu')
CurrentActionData = {zone = zone}
end)
AddEventHandler('esx_shops:hasExitedMarker', function(zone)
CurrentAction = nil
ESX.UI.Menu.CloseAll()
end)
-- Create Blips
+1 -1
View File
@@ -3,7 +3,7 @@ Locales['en'] = {
['shops'] = 'shops',
['press_menu'] = 'press ~INPUT_CONTEXT~ to access the ~y~store~s~.',
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
['not_enough'] = 'you do not have ~r~enough~s~ money, you\'re ~y~missing~s~ ~r~$%s~s~!',
['not_enough'] = 'you do not have ~r~enough~s~ money, you\'re ~y~missing~s~ ~r~$%s~s~!',
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
['shop_confirm'] = 'buy %sx %s for $%s?',
['no'] = 'no',