Client
These exports can only be used on the client-side. Make sure to use them in your client-side script files.
TextUIData
{
position: 'string', -- The position of the text UI. Can be 'left', 'right'.
icon = 'string', -- The icon name. (From FontAwesome)
iconAnimation = 'string', -- The icon animation. (From ox_lib)
color = 'string', -- The type of the text UI. Can be 'success', 'info', 'error'.
playSound = boolean, -- If the text UI should play a sound.
}
ShowTextUI
exports.it_bridge:ShowTextUI(text, data)
- text:
string
: The text to display. - data:
TextUIData
: The text UI data.
Shows a text UI with the specified text and data.
Example
exports.it_bridge:ShowTextUI('Hello World!', {
position = 'left',
icon = 'fa-info',
iconAnimation = 'shake',
color = 'info',
playSound = true,
})
HideTextUI
exports.it_bridge:HideTextUI(text)
- text?:
string | nil
: The text to hide. (Only works with ox_lib)
Hides the text UI with the specified text. If no text is specified, it will hide the current text UIs.
Example
exports.it_bridge:HideTextUI('Hello World!')