prefrence change in ox helptext
This commit is contained in:
1 parent
54437d9639
commit
13e0d0bb98
1 file changed
+5
-4
@@ -5,12 +5,13 @@ if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (c
|
|||||||
|
|
||||||
---This will show a help text message at the screen position passed
|
---This will show a help text message at the screen position passed
|
||||||
---@param message string
|
---@param message string
|
||||||
---@param _position string
|
---@param position string
|
||||||
---@return nil
|
---@return nil
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.ShowHelpText = function(message, _position)
|
HelpText.ShowHelpText = function(message, position)
|
||||||
if _position == nil then _position = 'left-center' end
|
return exports.ox_lib:showTextUI(message, {
|
||||||
return exports.ox_lib:showTextUI(message, { position = _position })
|
position = position or 'top-center'
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
|
|||||||
Reference in new issue
Block a user