Notify and HelpText split into seperate modules

Notify and HelpText split into separate modules, settings moved into shared.
This commit is contained in:
MrNewb committed 2025-04-28 10:21:03 -04:00
1 parent 2fd01dd2ae
commit 6e418f406c
20 files changed
+325 -86

No files matched your search

+13 -4
View File
@@ -5,20 +5,29 @@ Notify = Notify or {}
---@param message string
---@param _type string
---@param time number
---@diagnostic disable-next-line: duplicate-set-field
Notify.SendNotify = function(src, message, _type, time)
TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time)
end
---This will show a help text message to the specified player at the screen position passed
---------[[Depricated Stuff Below, please adjust to the HelpText module instead]]--------
---
---
---
---Depricated -- This will show a help text message to the specified player at the screen position passed
---@param src number
---@param message string
---@param position string
---@diagnostic disable-next-line: duplicate-set-field
Notify.ShowHelpText = function(src, message, position)
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
return HelpText.ShowHelpText(src, message, position)
end
---This will hide the help text message on the screen for the specified player
---Depricated -- This will hide the help text message on the screen for the specified player
---@param src number
---@diagnostic disable-next-line: duplicate-set-field
Notify.HideHelpText = function(src)
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
return HelpText.HideHelpText(src)
end