mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Fixed #19
This commit is contained in:
+4
-4
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user