mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 22:01:29 +00:00
tweak: use txAdmin locale by default
by default, use the txAdmin locale, unless a `esx:locale` is specified. This allows people to change languages easier, since everything will be in the same place, and if they want to specify a different language for ESX, then they can do. This also wont break anything, since it wont affect existing users whom will aready have the `esx:locale` set
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
Config = {}
|
||||
Config.Locale = GetConvar("esx:locale", "en")
|
||||
|
||||
local txAdminLocale = GetConvar("txAdmin-locale", "en")
|
||||
local esxLocale = GetConvar("esx:locale", "none")
|
||||
|
||||
Config.Locale = esxLocale == "none" and txAdminLocale or esxLocale
|
||||
|
||||
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'
|
||||
|
||||
|
||||
+3
-1
@@ -29,7 +29,9 @@ set onesync on # Enable OneSync [REQUIRED FOR LEGACY 1.7.5 +]
|
||||
set mysql_connection_string "mysql://user:password@localhost/es_extended?waitForConnections=true&charset=utf8mb4"
|
||||
set mysql_ui true
|
||||
|
||||
setr esx:locale "en"
|
||||
## Umcomment to set your own locale,
|
||||
## if not, it will use the language you have selected in txAdmin.
|
||||
#setr esx:locale "en"
|
||||
|
||||
## These resources will start by default.
|
||||
ensure chat
|
||||
|
||||
Reference in New Issue
Block a user