Files
community_bridge/modules/notify/_default/server.lua
T

24 lines
865 B
Lua
Raw Normal View History

2025-01-08 13:01:47 -05:00
Notify = Notify or {}
2025-01-08 06:33:31 -05:00
---This will send a notification to the specified player of the passed message and type
2025-03-03 01:37:29 -05:00
---@param src number
---@param message string
---@param _type string
---@param time number
2025-01-08 13:01:47 -05:00
Notify.SendNotify = function(src, message, _type, time)
TriggerClientEvent('community_bridge:Client:Notify', src, message, _type, time)
2025-01-23 23:34:21 -05:00
end
---This will show a help text message to the specified player at the screen position passed
2025-03-03 01:37:29 -05:00
---@param src number
---@param message string
---@param position string
2025-01-23 23:34:21 -05:00
Notify.ShowHelpText = function(src, message, position)
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
end
---This will hide the help text message on the screen for the specified player
---@param src number
2025-01-23 23:34:21 -05:00
Notify.HideHelpText = function(src)
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
2025-01-08 06:33:31 -05:00
end