Merge pull request #1416 from Mycroft-Studios/main

tweak: use txAdmin locale by default
This commit is contained in:
Arctos2win
2024-10-19 20:04:04 +02:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
Config = {}
Config.Locale = GetConvar("esx:locale", "en")
local txAdminLocale = GetConvar("txAdmin-locale", "en")
local esxLocale = GetConvar("esx:locale", "invalid")
Config.Locale = (esxLocale ~= "invalid") and esxLocale or (txAdminLocale ~= "custom" and txAdminLocale) or "en"
Config.OxInventory = GetResourceState("ox_inventory") ~= 'missing'
+3 -1
View File
@@ -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