ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
---@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
|
||||
---@param position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, position)
|
||||
return exports.ox_lib:showTextUI(message, {
|
||||
position = position or 'right-center'
|
||||
})
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return exports.ox_lib:hideTextUI()
|
||||
end
|
||||
|
||||
return HelpText
|
Loading…
Add table
Add a link
Reference in a new issue