mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
tweak(es_extended/config): condense Config.Locale
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
Config = {}
|
||||
|
||||
local txAdminLocale = GetConvar("txAdmin-locale", "en")
|
||||
local esxLocale = GetConvar("esx:locale", "none")
|
||||
local esxLocale = GetConvar("esx:locale", "invalid")
|
||||
|
||||
if esxLocale == "none" then
|
||||
Config.Locale = txAdminLocale ~= "custom" and txAdminLocale or "en"
|
||||
else
|
||||
Config.Locale = esxLocale
|
||||
end
|
||||
Config.Locale = (esxLocale ~= "invalid") and esxLocale or (txAdminLocale ~= "custom" and txAdminLocale) or "en"
|
||||
|
||||
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user