Notify and HelpText split into seperate modules
Notify and HelpText split into separate modules, settings moved into shared.
This commit is contained in:
1 parent
2fd01dd2ae
commit
6e418f406c
20 files changed
+325
-86
No files matched your search
@@ -0,0 +1,25 @@
|
||||
HelpText = HelpText or {}
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param _position string
|
||||
---@return nil
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.ShowHelpText = function(message, _position)
|
||||
return Framework.ShowHelpText(message, _position)
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function()
|
||||
return Framework.HideHelpText()
|
||||
end
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:ShowHelpText', function(message, position)
|
||||
HelpText.ShowHelpText(message, position)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||
HelpText.HideHelpText()
|
||||
end)
|
||||
Reference in new issue
Block a user