ed
This commit is contained in:
parent
875c8448e1
commit
c81ae4bb6d
219 changed files with 8036 additions and 7 deletions
23
resources/[tools]/bl_bridge/client/textui/esx.lua
Normal file
23
resources/[tools]/bl_bridge/client/textui/esx.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
---@diagnostic disable: lowercase-global
|
||||
local esx_textui = exports['esx_textui']
|
||||
local open = false
|
||||
local textui = {}
|
||||
|
||||
---@param text string
|
||||
---@param position? TextUIOptions
|
||||
function textui.showTextUI(text, position)
|
||||
esx_textui:TextUI(text)
|
||||
open = true
|
||||
end
|
||||
|
||||
function textui.hideTextUI()
|
||||
open = false
|
||||
esx_textui:HideUI()
|
||||
end
|
||||
|
||||
---@return boolean
|
||||
function textui.isTextUIOpen()
|
||||
return open
|
||||
end
|
||||
|
||||
return textui
|
19
resources/[tools]/bl_bridge/client/textui/ox.lua
Normal file
19
resources/[tools]/bl_bridge/client/textui/ox.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
---@diagnostic disable: lowercase-global
|
||||
|
||||
local textui = {}
|
||||
|
||||
---@param text string
|
||||
function textui.showTextUI(text, position)
|
||||
exports.ox_lib:showTextUI(text, position and {position = ('%s-center'):format(position)})
|
||||
end
|
||||
|
||||
function textui.hideTextUI()
|
||||
exports.ox_lib:hideTextUI()
|
||||
end
|
||||
|
||||
---@return boolean
|
||||
function textui.isTextUIOpen()
|
||||
return exports.ox_lib:isTextUIOpen()
|
||||
end
|
||||
|
||||
return textui
|
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