diff --git a/resource/client.lua b/resource/client.lua index 45b5129f..78e58651 100644 --- a/resource/client.lua +++ b/resource/client.lua @@ -16,4 +16,4 @@ RegisterNUICallback('getConfig', function(_, cb) primaryColor = GetConvar('ox:primaryColor', 'blue'), primaryShade = GetConvarInt('ox:primaryShade', 8) }) -end) \ No newline at end of file +end) diff --git a/resource/locale/client.lua b/resource/locale/client.lua index 88c6d153..527f68e6 100644 --- a/resource/locale/client.lua +++ b/resource/locale/client.lua @@ -30,4 +30,6 @@ RegisterNUICallback('init', function(_, cb) }) end) +if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end + lib.locale(settings.locale) diff --git a/resource/settings.lua b/resource/settings.lua index ec99d0d3..02c8e04b 100644 --- a/resource/settings.lua +++ b/resource/settings.lua @@ -2,8 +2,6 @@ local settings = { locale = GetResourceKvpString('locale'), } -if not settings.locale then lib.setLocale(GetConvar('ox:locale', 'en')) end - RegisterCommand('ox_lib', function() local input = lib.inputDialog('Settings', { {