Skip to main content
Map Notification

Triggering

Send notifications from server-side or client-side code through exports or events.

Server-side

Configuration

Server export

Send a notification to a player through the server-side export.

Using export functions
exports['av_notify']:AQUIVER_NOTIFY(source, type, time, header, msg)

-- Full example
exports['av_notify']:AQUIVER_NOTIFY(source, 'error', 5, 'Error header', 'Error message content')
Configuration

Server event

Send a notification to a player through the client event.

Using events
TriggerClientEvent('AV:NOTIFY:SEND', source, type, time, header, msg)

-- Full example
TriggerClientEvent('AV:NOTIFY:SEND', source, 'error', 5, 'Error header', 'Error message content')

Client-side

Configuration

Client export

Display a notification through the client-side export.

Using export functions
exports['av_notify']:AQUIVER_NOTIFY(type, time, header, msg)

-- Full example
exports['av_notify']:AQUIVER_NOTIFY('info', 5, 'Info header', 'Today was a good day.')
Configuration

Client event

Display a notification through the client event.

Using events
TriggerEvent('AV:NOTIFY:SEND', type, time, header, msg)

-- Full example
TriggerEvent('AV:NOTIFY:SEND', 'info', 5, 'Info header', 'Today was a good day.')