From 07b76868f2df7a126c4d46777685e8d8ac26b31e Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Thu, 24 Jul 2025 00:10:47 -0400 Subject: [PATCH] notify tweak --- modules/notify/brutal_notify/client.lua | 2 +- modules/notify/fl-notify/client.lua | 2 ++ modules/notify/lation_ui/client.lua | 2 +- modules/notify/okokNotify/client.lua | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/notify/brutal_notify/client.lua b/modules/notify/brutal_notify/client.lua index 7eb9e87..d40104f 100644 --- a/modules/notify/brutal_notify/client.lua +++ b/modules/notify/brutal_notify/client.lua @@ -16,7 +16,7 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 - return exports['brutal_notify']:SendAlert('Notification', message, time, _type, false) + return exports['brutal_notify']:SendAlert('Notification', message, time, _type or "success", false) end return Notify \ No newline at end of file diff --git a/modules/notify/fl-notify/client.lua b/modules/notify/fl-notify/client.lua index c8d2a87..68d9cd3 100644 --- a/modules/notify/fl-notify/client.lua +++ b/modules/notify/fl-notify/client.lua @@ -22,6 +22,8 @@ Notify.SendNotify = function(message, _type, time) _type = tostring(2) elseif _type == "warning" or _type == "warn" then _type = tostring(3) + else + _type = tostring(2) -- Default to 2 if type is not recognized end return exports['FL-Notify']:Notify("Notification", "", message, 5000, tonumber(_type), 0) end diff --git a/modules/notify/lation_ui/client.lua b/modules/notify/lation_ui/client.lua index 02ae6dc..186ec79 100644 --- a/modules/notify/lation_ui/client.lua +++ b/modules/notify/lation_ui/client.lua @@ -16,7 +16,7 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 - return exports.lation_ui:notify({ message = message, type = _type, duration = time, position = 'top-right' }) + return exports.lation_ui:notify({ message = message, type = _type or "success", duration = time, position = 'top-right' }) end return Notify \ No newline at end of file diff --git a/modules/notify/okokNotify/client.lua b/modules/notify/okokNotify/client.lua index 1a158ea..4c7d2fa 100644 --- a/modules/notify/okokNotify/client.lua +++ b/modules/notify/okokNotify/client.lua @@ -15,7 +15,7 @@ end ---@return nil Notify.SendNotify = function(message, _type, time) time = time or 3000 - return exports['okokNotify']:Alert('Notification', message, time, _type, false) + return exports['okokNotify']:Alert('Notification', message, time, _type or "Success", false) end return Notify \ No newline at end of file