Update notify.lua

This commit is contained in:
Jim Shield
2025-11-02 22:43:02 +00:00
parent d2bf1c01bf
commit 606ad1d124

View File

@@ -111,7 +111,10 @@ local notifyFunc = {
--- triggerNotify("Alert", "You have been warned for misconduct.", "error", playerId) --- triggerNotify("Alert", "You have been warned for misconduct.", "error", playerId)
--- ``` --- ```
function triggerNotify(title, message, type, src) function triggerNotify(title, message, type, src)
if not Config.System?.Notify then debugPrint("Notify triggered but not set up") return end if not Config or not Config.System or not Config.System.Notify then
print("Notify triggered but not set up")
return
end
if src then if src then
notifyFunc[Config.System.Notify].server(title, message, type, src) notifyFunc[Config.System.Notify].server(title, message, type, src)