From 662c83e7999d6919d75ae1d28b34b4af69a1b46c Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Wed, 8 Jan 2025 12:35:51 -0500 Subject: [PATCH] Notify Fix --- modules/notify/client.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/notify/client.lua b/modules/notify/client.lua index 289f123..436b896 100644 --- a/modules/notify/client.lua +++ b/modules/notify/client.lua @@ -1,4 +1,6 @@ -function InternalNotify(message, type, time) +Notify = Notify or {} + +Notify.SendNotify = function(message, type, time) if BridgeClientConfig == nil or BridgeClientConfig.NotifySystem == nil then return Prints.error("You have not configured a compatable notify in community_bridge") end local notifyType = BridgeClientConfig.NotifySystem time = time or 3000 @@ -25,7 +27,7 @@ function InternalNotify(message, type, time) end end -function InternalShowHelpText(message, position) +Notify.ShowHelpText = function(message, position) if BridgeClientConfig == nil or BridgeClientConfig.ShowHelpText == nil then return Prints.error("You have not configured a compatable helptext in community_bridge") end local helptextType = BridgeClientConfig.ShowHelpText if helptextType == 'ox' then @@ -43,7 +45,7 @@ function InternalShowHelpText(message, position) end end -function InternalHideHelpText() +Notify.HideHelpText = function() if BridgeClientConfig == nil or BridgeClientConfig.ShowHelpText == nil then return Prints.error("You have not configured a compatable helptext in community_bridge") end local helptextType = BridgeClientConfig.ShowHelpText if helptextType == 'ox' then @@ -61,6 +63,6 @@ function InternalHideHelpText() end end -RegisterNetEvent('community_bridge:Client:Notify', function(message, type, time) - InternalNotify(message, type, time) +RegisterNetEvent('community_bridge:Client:Notify', function(message, _type, time) + Notify.SendNotify(message, _type, time) end) \ No newline at end of file