forked from Simnation/Main
ed
This commit is contained in:
parent
875c8448e1
commit
c81ae4bb6d
219 changed files with 8036 additions and 7 deletions
24
resources/[tools]/bl_bridge/client/textui/qb.lua
Normal file
24
resources/[tools]/bl_bridge/client/textui/qb.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue