fix(resource/settings): prevent locale update if userLocales is false (#741)

This commit is contained in:
RrybaN
2025-04-02 02:48:42 +08:00
committed by GitHub
parent c397963e84
commit c27a526045

View File

@@ -99,7 +99,7 @@ RegisterCommand('ox_lib', function()
---@type boolean, string, string
local notification_audio, notification_position, locale = table.unpack(input)
if set('locale', locale) then lib.setLocale(locale) end
if userLocales and set('locale', locale) then lib.setLocale(locale) end
set('notification_position', notification_position)
set('notification_audio', notification_audio)