update: add missing options
This commit is contained in:
1 parent
d9f4a7aaeb
commit
d18c5cfe2c
7 files changed
+15
-15
No files matched your search
@@ -40,7 +40,7 @@ function Language.Locale(str, ...)
|
||||
return locale
|
||||
end
|
||||
|
||||
if BridgeSharedConfig.DebugLevel == 3 then
|
||||
if BridgeSharedConfig.DebugLevel == 2 then
|
||||
-- if outside this resource, use local whatever = Require("modules/locales/shared.lua")
|
||||
-- whatever.Locales("some-index-in-language-.json-file")
|
||||
-- Files must be stored in "locales" folder, within the resource.
|
||||
|
||||
@@ -7,16 +7,16 @@ Notify.SendNotify = function(message, type, time)
|
||||
if notifyType == 'qb' then
|
||||
return TriggerEvent('QBCore:Notify', message, 'primary', time)
|
||||
elseif notifyType == 'mythic_notify' then
|
||||
return exports['mythic_notify']:SendAlert('inform', message, time)
|
||||
return exports['mythic']:SendAlert('inform', message, time)
|
||||
elseif notifyType == 'pNotify' then
|
||||
return exports['pNotify']:SendNotification({ text = message, type = type, timeout = time, layout = 'centerRight' })
|
||||
elseif notifyType == 'esx_notify' then
|
||||
elseif notifyType == 'esx' then
|
||||
return ESX.ShowNotification(message, type, time)
|
||||
elseif notifyType == 'ox' then
|
||||
return exports.ox_lib:notify({ description = message, type = type, position = 'center-left' })
|
||||
elseif notifyType == 't-notify' then
|
||||
return exports['t-notify']:Alert({ style = 'info', message = message, duration = time, })
|
||||
elseif notifyType == 'wasabi_notify' then
|
||||
elseif notifyType == 'wasabi' then
|
||||
return exports.wasabi_notify:notify(type, message, time, type)
|
||||
elseif notifyType == 'lab' then
|
||||
return exports['swe-notify']:SendNotification(message, time, type)
|
||||
|
||||
@@ -2,7 +2,7 @@ if GetResourceState('ox_target') ~= 'started' then return end
|
||||
|
||||
local targetDebug = false
|
||||
local function detectDebugEnabled()
|
||||
if BridgeClientConfig.DebugLevel == 3 then
|
||||
if BridgeClientConfig.DebugLevel == 2 then
|
||||
targetDebug = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,7 +2,7 @@ if GetResourceState('qb-target') ~= 'started' or GetResourceState('ox_target') =
|
||||
|
||||
local targetDebug = false
|
||||
local function detectDebugEnabled()
|
||||
if BridgeClientConfig.DebugLevel == 3 then
|
||||
if BridgeClientConfig.DebugLevel == 2 then
|
||||
targetDebug = true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user