1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-04 04:28:47 +02:00
parent 875c8448e1
commit c81ae4bb6d
219 changed files with 8036 additions and 7 deletions

View file

@ -0,0 +1,24 @@
---@diagnostic disable: lowercase-global
local textui_fw = 'qb-core'
local qb_textui = exports[textui_fw]
local open = false
local textui = {}
---@param text string
---@param position? TextUIOptions
function textui.showTextUI(text, position)
qb_textui:DrawText(text, position or 'right')
open = true
end
function textui.hideTextUI()
open = false
qb_textui:HideText()
end
---@return boolean
function textui.isTextUIOpen()
return open
end
return textui