Notifications (client)

Show a notification on the local player. Server scripts use notify(src, data). Payload type: OxNotification.

notify(data)

Signature: notify(data: OxNotification): void

ParamType
dataOxNotification

Each client notify also fires Newb_Bridge:Client:NotifyShown (used by the pause-menu history).

bridge.notifications.notify({
    title = 'Success',
    description = 'Item used',
    type = 'success',
    duration = 4000,
})