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
| Param | Type |
|---|---|
src | number |
data | OxNotification |
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.