Notifications

Notifications. bridge.notifications uses ox_lib-shaped notification tables.

bridge.notifications uses ox_lib-shaped notification tables.

Auto-detect order: ox_lib → vms_notifyv2 → codem-notification → brutal_notify → fl-notify → mythic_notify → okokNotify → pnotify → solaire_notify → t-notify → lation_ui → wasabi_notify → zsx_uiv2.

-- Client
bridge.notifications.notify({
    description = 'Item used',
    type = 'success',
})

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

Types

OxNotification

FieldType
idstring?
titlestring?
descriptionstring?
durationnumber? default 3000
showDurationboolean?
position'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left' | 'center-right' | 'center-left'
type'inform' | 'error' | 'success' | 'warning'
styletable?
iconstring?
iconColorstring?
iconAnimation'spin' | 'spinPulse' | 'spinReverse' | 'pulse' | 'beat' | 'fade' | 'beatFade' | 'bounce' | 'shake'
alignIcon'top' | 'center'
soundtable?

On this page