Skip to Content

Notification

Display notifications to the player.

Export

ExportParameters
Notify(data)

Parameters

ParameterTypeRequiredDescription
titlestringNoNotification title
descriptionstringYesNotification message — supports markdown (bold, italic, links)
typestringNo'success', 'error', 'warning', or 'info'
durationnumberNoDuration in ms (default: config value)
positionstringNoOverride default position ('top-right', 'top-left', 'top-center', 'bottom-right', 'bottom-left', 'bottom-center')
iconstringNoFontAwesome icon name or image URL
iconColorstringNoCustom icon color (hex or CSS color)
iconAnimationstringNoIcon animation: 'spin', 'beat', 'fade', 'bounce', 'shake', 'beatFade', 'spinPulse'
idstring or numberNoUnique ID — passing the same ID replaces the existing notification
styletableNoCustom CSS styles or { backgroundColor, color }

Usage

Basic Notification

exports['flux-ui-pack']:Notify({ title = 'Success', description = 'Action completed', type = 'success' })

With Custom Icon and Color

exports['flux-ui-pack']:Notify({ title = 'Vehicle Locked', description = 'Your vehicle has been **locked**', type = 'info', icon = 'lock', iconColor = '#3498db', iconAnimation = 'bounce', duration = 5000 })

Error Notification

exports['flux-ui-pack']:Notify({ title = 'Error', description = 'Something went wrong', type = 'error', duration = 5000 })

Simple Notification

exports['flux-ui-pack']:Notify({ description = 'You picked up an item' })
Last updated on