diff --git a/modules/notify/mythic_notify/client.lua b/modules/notify/mythic_notify/client.lua index 0538d61..e1d7585 100644 --- a/modules/notify/mythic_notify/client.lua +++ b/modules/notify/mythic_notify/client.lua @@ -15,7 +15,8 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 - return exports['mythic_notify']:SendAlert('inform', message, time) + _type = _type or "inform" + return exports['mythic_notify']:SendAlert(_type, message, time) end return Notify \ No newline at end of file diff --git a/modules/notify/ox_lib/client.lua b/modules/notify/ox_lib/client.lua index 83406d7..99838b3 100644 --- a/modules/notify/ox_lib/client.lua +++ b/modules/notify/ox_lib/client.lua @@ -16,7 +16,7 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 - return exports.ox_lib:notify({ description = message, type = _type, position = 'center-left' }) + return exports.ox_lib:notify({ description = message, type = _type, duration = time, position = 'top-right' }) end return Notify \ No newline at end of file diff --git a/modules/notify/t-notify/client.lua b/modules/notify/t-notify/client.lua index 3c452c0..c300adc 100644 --- a/modules/notify/t-notify/client.lua +++ b/modules/notify/t-notify/client.lua @@ -15,7 +15,8 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 - return exports['t-notify']:Alert({ style = 'info', message = message, duration = time, }) + _type = _type or "info" + return exports['t-notify']:Alert({ style = _type, message = message, duration = time, }) end return Notify \ No newline at end of file diff --git a/modules/notify/wasabi_notify/client.lua b/modules/notify/wasabi_notify/client.lua index 7fe692f..21dedc8 100644 --- a/modules/notify/wasabi_notify/client.lua +++ b/modules/notify/wasabi_notify/client.lua @@ -15,6 +15,7 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 + _type = _type or "info" return exports.wasabi_notify:notify(_type, message, time, _type) end