Newb_BridgeModulesNotifications

Notifications

bridge.notifications uses ox_lib-shaped notification tables.

Auto-detect order: ox_libvms_notifyv2codem-notificationbrutal_notifyfl-notifymythic_notifyokokNotifypnotifysolaire_notifyt-notifylation_uiwasabi_notifyzsx_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?