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)| Param | Type |
|---|---|
data | OxNotification |
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,
})