diff --git a/client/main.lua b/client/main.lua index e9c5bfd2..935eebaa 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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 .. ' - $' .. item.price .. '', 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 diff --git a/locales/en.lua b/locales/en.lua index 1b02063a..237b5828 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -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',