21 lines
833 B
Lua
21 lines
833 B
Lua
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
|
|
---@param _position string
|
|
---@return nil
|
|
---@diagnostic disable-next-line: duplicate-set-field
|
|
HelpText.ShowHelpText = function(message, _position)
|
|
if _position == nil then _position = 'left-center' end
|
|
return exports.ox_lib:showTextUI(message, { position = _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 exports.ox_lib:hideTextUI()
|
|
end |