2025-06-08 19:52:24 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
2025-02-06 02:26:56 -06:00
|
|
|
Notify = Notify or {}
|
2025-04-28 10:21:03 -04:00
|
|
|
|
|
|
|
|
Notify.GetResourceName = function()
|
|
|
|
|
return "none"
|
|
|
|
|
end
|
2025-02-06 02:26:56 -06:00
|
|
|
|
2025-04-02 07:27:13 -04:00
|
|
|
---This will send a notify message of the type and time passed
|
2025-03-03 01:37:29 -05:00
|
|
|
---@param message string
|
|
|
|
|
---@param _type string
|
|
|
|
|
---@param time number
|
|
|
|
|
---@return nil
|
2025-02-06 04:16:00 -05:00
|
|
|
Notify.SendNotify = function(message, _type, time)
|
|
|
|
|
time = time or 3000
|
2025-04-28 10:21:03 -04:00
|
|
|
return Framework.Notify(message, nil, time)
|
2025-02-06 02:26:56 -06:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
RegisterNetEvent('community_bridge:Client:Notify', function(message, _type, time)
|
|
|
|
|
Notify.SendNotify(message, _type, time)
|
|
|
|
|
end)
|
|
|
|
|
|
2025-04-28 10:21:03 -04:00
|
|
|
---------[[Depricated Stuff Below, please adjust to the HelpText module instead]]--------
|
|
|
|
|
---Depricated: This will hide the help text message on the screen
|
|
|
|
|
---@return nil
|
|
|
|
|
Notify.HideHelpText = function()
|
|
|
|
|
return HelpText.HideHelpText()
|
|
|
|
|
end
|
2025-02-06 02:26:56 -06:00
|
|
|
|
2025-04-28 10:21:03 -04:00
|
|
|
---Depricated: This will show a help text message at the screen position passed
|
|
|
|
|
---@param message string
|
|
|
|
|
---@return nil
|
|
|
|
|
Notify.ShowHelpText = function(message, position)
|
|
|
|
|
return HelpText.ShowHelpText(message, position)
|
2025-05-10 00:01:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return Notify
|