Merge pull request #1075 from Gellipapa/main

fix(es_extended locales, function overrides, esx_menu_default  menu stuck)
This commit is contained in:
Gellipapa
2023-06-22 23:46:13 +02:00
committed by GitHub
2 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -2,8 +2,7 @@ Locales = {}
function Translate(str, ...) -- Translate string
if not str then
local currentResourceName = GetCurrentResourceName()
print(("[^1ERROR^7] Resource ^5%s^7 You did not specify a parameter for the Translate function or the value is nil!"):format(currentResourceName))
print(("[^1ERROR^7] Resource ^5%s^7 You did not specify a parameter for the Translate function or the value is nil!"):format(GetInvokingResource() or GetCurrentResourceName()))
return 'Given translate function parameter is nil!'
end
if Locales[Config.Locale] then
+4 -2
View File
@@ -14,8 +14,10 @@ end
local function closeMenu(namespace, name)
CurrentNameSpace = namespace
if OpenedMenus < 1 then return end
OpenedMenus = OpenedMenus - 1
OpenedMenus -= 1
if OpenedMenus < 0 then
OpenedMenus = 0
end
SendNUIMessage({
action = 'closeMenu',
namespace = namespace,