Files
community_bridge/modules/helptext/ox_lib/client.lua
T

23 lines
754 B
Lua
Raw Normal View History

---@diagnostic disable: duplicate-set-field
HelpText = HelpText or {}
local resourceName = "ox_lib"
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
2025-05-24 21:40:03 -04:00
---@param position string
---@return nil
2025-05-24 21:40:03 -04:00
HelpText.ShowHelpText = function(message, position)
return exports.ox_lib:showTextUI(message, {
2025-06-10 06:28:16 -04:00
position = position or 'right-center'
2025-05-24 21:40:03 -04:00
})
end
---This will hide the help text message on the screen
---@return nil
HelpText.HideHelpText = function()
return exports.ox_lib:hideTextUI()
end
return HelpText