mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
refactor(resource/interface): formatting and type definitions
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
---@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
|
||||
@@ -11,4 +19,4 @@ function lib.hideTextUI()
|
||||
SendNUIMessage({
|
||||
action = 'textUiHide'
|
||||
})
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user