Skip to content

Commit

Permalink
fix(client/main): Replace menu.close with ESX.CloseContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios authored Dec 13, 2023
1 parent 66cb1bb commit 04384a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ function OpenBuyWeaponsMenu()
ESX.ShowNotification(TranslateCap('armory_bought', data.current.weaponLabel, ESX.Math.GroupDigits(data.current.price)))
end

menu.close()
ESX.CloseContext()
OpenBuyWeaponsMenu()
else
ESX.ShowNotification(TranslateCap('armory_money'))
Expand All @@ -817,7 +817,7 @@ function OpenWeaponComponentShop(components, weaponName, parentShop)
ESX.ShowNotification(TranslateCap('armory_bought', data.current.componentLabel, ESX.Math.GroupDigits(data.current.price)))
end

menu.close()
ESX.CloseContext()
parentShop.close()
OpenBuyWeaponsMenu()
else
Expand Down Expand Up @@ -1419,7 +1419,7 @@ ESX.RegisterInput("police:interact", "(ESX PoliceJob) " .. TranslateCap('interac
elseif CurrentAction == 'menu_boss_actions' then
ESX.CloseContext()
TriggerEvent('esx_society:openBossMenu', 'police', function(data, menu)
menu.close()
ESX.CloseContext()

CurrentAction = 'menu_boss_actions'
CurrentActionMsg = TranslateCap('open_bossmenu')
Expand Down

0 comments on commit 04384a3

Please sign in to comment.