From 606ad1d124f0589964f18dd093fbc7fc34c4d52c Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sun, 2 Nov 2025 22:43:02 +0000 Subject: [PATCH] Update notify.lua --- shared/notify.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)