21 lines
		
	
	
		
			No EOL
		
	
	
		
			769 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			No EOL
		
	
	
		
			769 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
---@diagnostic disable: duplicate-set-field
 | 
						|
HelpText = HelpText or {}
 | 
						|
local resourceName = "lation_ui"
 | 
						|
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.lation_ui:showText({description = tostring(message), position = position or 'right-center'})
 | 
						|
end
 | 
						|
 | 
						|
---This will hide the help text message on the screen
 | 
						|
---@return nil
 | 
						|
HelpText.HideHelpText = function()
 | 
						|
    return exports.lation_ui:hideText()
 | 
						|
end
 | 
						|
 | 
						|
return HelpText |