tweak(es_extended/config): condense Config.Locale

This commit is contained in:
Kasey FItton
2024-10-18 07:58:52 +01:00
parent d077156c88
commit 480d152f76
+2 -6
View File
@@ -1,13 +1,9 @@
Config = {} Config = {}
local txAdminLocale = GetConvar("txAdmin-locale", "en") local txAdminLocale = GetConvar("txAdmin-locale", "en")
local esxLocale = GetConvar("esx:locale", "none") local esxLocale = GetConvar("esx:locale", "invalid")
if esxLocale == "none" then Config.Locale = (esxLocale ~= "invalid") and esxLocale or (txAdminLocale ~= "custom" and txAdminLocale) or "en"
Config.Locale = txAdminLocale ~= "custom" and txAdminLocale or "en"
else
Config.Locale = esxLocale
end
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing' Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'