Notifications
lib.notify
Custom notifications with a lot of styling options.
lib.notify(data)TriggerClientEvent('ox_lib:notify', source, data)id?:
stringWhen set the current notification will be unique and only shown once on screen when spammed.
title?:
stringMust provide if there is no description
description?:
stringMust provide if there is no title
Markdown support
duration?:
numberposition?:
'top'or'top-right'or'top-left'or'bottom'or'bottom-right'or'bottom-left'or'center-right'or'center-left'Default:
'top-right'
type?:
'inform'or'error'or'success'or'warning'Default:
'inform'
style?:
table(object)React CSS styling format
icon?:
stringFont Awesome 6 icon name
iconColor:
string
Usage Example
Standard

Custom

Last updated