Client

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

Notifications (client)

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

notify(data)

notify(data)
ParamType
dataOxNotification

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

Usage Example

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

On this page