diff --git a/shared/notify.lua b/shared/notify.lua index 2546952..cdd95ae 100644 --- a/shared/notify.lua +++ b/shared/notify.lua @@ -111,7 +111,10 @@ local notifyFunc = { --- triggerNotify("Alert", "You have been warned for misconduct.", "error", playerId) --- ``` 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 notifyFunc[Config.System.Notify].server(title, message, type, src)