mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
tweak(es_extended/config): condense Config.Locale
This commit is contained in:
@@ -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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user