Notify

Library
Updated 2 months ago · v1.3.7

lib.notify

Show a notification.

lua
lib.notify({
    title = 'Welcome',
    description = 'You have joined the server',
    type = 'success',
    duration = 5000,
})
FieldTypeRequiredDescription
titlestringnoNotification title
descriptionstringnoNotification body text
typestringno"error", "success", "inform", or "warning"
durationnumbernoDisplay time in milliseconds
positionstringnoOverride position (e.g. "top-right")
soundbooleannoPlay notification sound

lib.defaultNotify

Compatibility notification wrapper used by some resources.

lua
lib.defaultNotify({
    status = 'success',
    title = 'Saved',
    description = 'Profile updated successfully',
})

status is mapped to notification type internally.

Was this page helpful?
This page was last updated on 12 March 2026
DIRKSCRIPTS
All you need for your FiveM server.10% off your first order

Unsubscribe any time.

Copyright © 2026 DirkScripts. Not affiliated with or endorsed by Rockstar North or Take-Two Interactive.