mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
22 lines
498 B
Lua
22 lines
498 B
Lua
---@class TextUIOptions
|
|
---@field position? 'right-center' | 'left-center' | 'top-center';
|
|
---@field icon? string;
|
|
---@field iconColor? string;
|
|
---@field style? string;
|
|
|
|
---@param text string
|
|
---@param options TextUIOptions
|
|
function lib.showTextUI(text, options)
|
|
if not options then options = {} end
|
|
options.text = text
|
|
SendNUIMessage({
|
|
action = 'textUi',
|
|
data = options
|
|
})
|
|
end
|
|
|
|
function lib.hideTextUI()
|
|
SendNUIMessage({
|
|
action = 'textUiHide'
|
|
})
|
|
end |