Notifications (server)

Send a notification to a player. Local display lives on client. Payload type: OxNotification.

notify(src, data)

Signature: notify(src: number, data: OxNotification): void

ParamType
srcnumber
dataOxNotification

Triggers Newb_Bridge:client:notify on the target client.

bridge.notifications.notify(source, {
    description = 'Welcome back',
    type = 'inform',
    duration = 5000,
})

Use this instead of bridge.framework.notify — that method does not exist on framework providers.