Main/resources/[carscripts]/community_bridge/modules/helptext/cd_drawtextui/client.lua
2025-08-06 16:37:06 +02:00

22 lines
No EOL
737 B
Lua

---@diagnostic disable: duplicate-set-field
HelpText = HelpText or {}
local resourceName = "cd_drawtextui"
local configValue = BridgeSharedConfig.HelpText
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
---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 TriggerEvent('cd_drawtextui:ShowUI', 'show', message)
end
---This will hide the help text message on the screen
---@return nil
HelpText.HideHelpText = function()
return TriggerEvent('cd_drawtextui:HideUI')
end
return HelpText