This commit is contained in:
Nordi98 2025-08-06 16:37:06 +02:00
parent 510e3ffcf2
commit f43cf424cf
305 changed files with 34683 additions and 0 deletions

View file

@ -0,0 +1,26 @@
---@diagnostic disable: duplicate-set-field
HelpText = HelpText or {}
---This will show a help text message at the screen position passed
---@param message string
---@param _position string
---@return nil
HelpText.ShowHelpText = function(message, _position)
return Framework.ShowHelpText(message, _position)
end
---This will hide the help text message on the screen
---@return nil
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)
return HelpText

View file

@ -0,0 +1,18 @@
---@diagnostic disable: duplicate-set-field
HelpText = HelpText or {}
---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
HelpText.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
HelpText.HideHelpText = function(src)
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
end
return HelpText