mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Squashed commit of the following:
commit4e52da5cf7Merge:c048b434c8f062b4Author: Csoki <feketetibi71@gmail.com> Date: Wed Oct 5 16:35:53 2022 +0200 Merge branch 'main' into locale-convar commitc048b434e5Merge:e9fb9882d16869b5Author: Csoki <feketetibi71@gmail.com> Date: Sat Sep 17 15:06:21 2022 +0200 Merge branch 'main' into locale-convar commite9fb988237Author: Csoki <feketetibi71@gmail.com> Date: Thu Sep 15 00:26:18 2022 +0200 add server.cfg esx:locale convar commitdffaa5caaeAuthor: Csoki <feketetibi71@gmail.com> Date: Thu Sep 15 00:24:55 2022 +0200 refactor translate function commitf665fc2c7fAuthor: Csoki <feketetibi71@gmail.com> Date: Thu Sep 15 00:23:24 2022 +0200 change all Config.locale to convar
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Accounts = {
|
||||
bank = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
-- [Config.EnableCommands]
|
||||
-- Enables Commands Such As /char and /chardel
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
-- Allows players to delete their characters
|
||||
Config.CanDelete = true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.BackpackWeight = {
|
||||
[40] = 16,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Components = {{
|
||||
label = _U('sex'),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Price = 100
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.MinPlayer = 10 --Set how many players need to be connect before whitelist start, 0-32
|
||||
|
||||
@@ -8,7 +8,7 @@ Config.ReviveReward = 700 -- Revive reward, set to 0 if you don't
|
||||
Config.SaveDeathStatus = true -- Save Death Status?
|
||||
Config.LoadIpl = true -- Disable if you're using fivem-ipl or other IPL loaders
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.DistressBlip = {
|
||||
Sprite = 310,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Config = {}
|
||||
Config.DrawDistance = 10.0
|
||||
Config.BankSavingPercentage = 2.5
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Zones = {
|
||||
BankActions = {
|
||||
|
||||
@@ -7,7 +7,7 @@ Config.MarkerSize = vector3(1.5, 1.5, 1.0)
|
||||
Config.MarkerColor = {r = 102, g = 102, b = 204}
|
||||
Config.MarkerType = 1
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Shops = {
|
||||
vector3(-814.3, -183.8, 36.6),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.Visible = true
|
||||
|
||||
Config.Food = {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.LicenseEnable = true -- enable boat license? Requires esx_license
|
||||
Config.LicensePrice = 50000
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Price = 250
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.ToggleKey = "CAPITAL"
|
||||
|
||||
@@ -2,7 +2,7 @@ Config = {}
|
||||
Config.DrawDistance = 10.0
|
||||
Config.MaxErrors = 5
|
||||
Config.SpeedMultiplier = 3.6
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Prices = {
|
||||
dmv = 500,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Delays = {
|
||||
WeedProcessing = 1000 * 7
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = "en"
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.DrawDistance = 10.0
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Marker = {
|
||||
r = 250, g = 0, b = 0, a = 100, -- red color
|
||||
|
||||
@@ -6,7 +6,7 @@ Config.MarkerColor = {r = 100, g = 200, b = 104}
|
||||
Config.MarkerType = 27
|
||||
Config.Debug = ESX.GetConfig().EnableDebug
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Zones = {
|
||||
vector3(-265.08, -964.1, 30.3)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
Config.DrawDistance = 10.0
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.Jobs = {}
|
||||
|
||||
Config.MaxCaution = 10000 -- the max caution allowed
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Config = {}
|
||||
Config.DrawDistance = 10.0
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.IsMechanicJobOnly = false
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.DrawDistance = 10.0 -- How close you need to be in order for the markers to be drawn (in GTA units).
|
||||
Config.MaxInService = -1
|
||||
|
||||
@@ -2,4 +2,4 @@ Config = {}
|
||||
|
||||
Config.TickTime = 100
|
||||
Config.UpdateClientTime = 5000
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
@@ -20,7 +20,7 @@ Config.EnableCustomPeds = false -- Enable custom peds in cloak room? S
|
||||
Config.EnableESXService = false -- Enable esx service?
|
||||
Config.MaxInService = -1 -- How many people can be in service at once? Set as -1 to have no limit
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.OxInventory = ESX.GetConfig().OxInventory
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Config.OwnedBlips = true -- Add blips for Owned Properties
|
||||
---------------------------------------------------------------
|
||||
|
||||
--------------------- General Settings ---------------------------------
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.Shells = false -- Enable/Disable Shell Interiors Default: false
|
||||
Config.SaveInterval = 5 -- Interval in Minutes to Save Properties
|
||||
Config.CanAlwaysExit = true -- Disabling this allows players to be locked in
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.OnlyFirstname = false
|
||||
Config.EnableESXIdentity = true -- RP names
|
||||
|
||||
@@ -3,7 +3,7 @@ Config.DrawDistance = 7.5
|
||||
Config.MarkerSize = {x = 1.1, y = 0.7, z = 1.1}
|
||||
Config.MarkerType = 29
|
||||
Config.MarkerColor = {r = 50, g = 200, b = 50, a = 200}
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.Zones = {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Config = {}
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.EnableESXIdentity = true
|
||||
Config.MaxSalary = 3500
|
||||
|
||||
@@ -9,7 +9,7 @@ Config.MaxInService = -1 -- How much people can be in service at o
|
||||
Config.EnablePlayerManagement = true -- Enable society managing.
|
||||
Config.EnableSocietyOwnedVehicles = false
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.OxInventory = ESX.GetConfig().OxInventory
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Config.MarkerColor = {r = 120, g = 120, b = 240}
|
||||
Config.EnablePlayerManagement = false -- enables the actual car dealer job. You'll need esx_addonaccount, esx_billing and esx_society
|
||||
Config.ResellPercentage = 50
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
|
||||
Config.LicenseEnable = false -- require people to own drivers license when buying vehicles? Only applies if EnablePlayerManagement is disabled. Requires esx_license
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ Config.Size = { x = 1.5, y = 1.5, z = 0.5 }
|
||||
Config.Color = { r = 0, g = 128, b = 255 }
|
||||
Config.Type = 1
|
||||
|
||||
Config.Locale = 'en'
|
||||
Config.Locale = GetConvar('esx:locale', 'en')
|
||||
Config.MenuPosition = "right"
|
||||
Config.OxInventory = ESX.GetConfig().OxInventory
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ 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"
|
||||
|
||||
## These resources will start by default.
|
||||
ensure chat
|
||||
ensure spawnmanager
|
||||
|
||||
Reference in New Issue
Block a user