Client Exports
Notify
See lib.notify
(opens in a new tab) for more details.
Text box popup which disappears after a given amount of time.
exports.qbx_core:Notify(text, notifyType, duration, subTitle, notifyPosition, notifyStyle, notifyIcon, notifyIconColor)
- text:
table | string
- The text of the notification.
- Can be a string, or a table containing:
- text?:
string
- caption?:
string
- text?:
- notifyType?:
'inform' | 'error' | 'success' | 'warning'
- Default:
'inform'
- Default:
- duration?:
integer
- The duration in milliseconds for which the notification will remain on screen.
- Default:
5000
- subTitle?:
string
- Additional text under the title.
- notifyPosition?:
'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left' | 'center-right' | 'center-left'
- Default:
top-right
(changable in config)
- Default:
- notifyStyle?:
table
- Custom styling. Refer to
lib.notify
(opens in a new tab).
- Custom styling. Refer to
- notifyIcon?:
string
- Font Awesome 6 icon name.
- notifyIconColor?:
string
- Custom color for
notifyIcon
.
- Custom color for