The UD-notify resource provides a collection of exports that can be used on both the client and server sides to display notifications directly from any fivem resource.
Each export supports customizable colors, titles, durations, and optional sounds (if enabled in the config).Basic Exports
Notify
| Parameter | Type | Description |
|---|---|---|
Message | string | The main content of the notification |
color | string | The color of the notification (e.g. "green", "red", "blue") |
time | number | Duration in milliseconds (e.g. 5000 = 5 seconds) |
NotifyTitle
| Parameter | Type | Description |
|---|---|---|
Title | string | The notification title |
Message | string | The main content of the notification |
color | string | The color of the notification |
time | number | Duration in milliseconds |
NotifyOnlyTitle
| Parameter | Type | Description |
|---|---|---|
Title | string | The notification title |
color | string | The color of the notification |
time | number | Duration in milliseconds |
NotifyCustom
| Parameter | Type | Description |
|---|---|---|
Title | string | The notification title |
Message | string | The notification text |
color | string | The color of the notification |
time | number | Duration in milliseconds |
Predefined Shortcut Exports
These exports are quick and convenient wrappers for commonly used notification types.| Export | Default Color | Description |
|---|---|---|
NotifySuccess | green | Displays a success message |
NotifyError | red | Displays an error or failure message |
NotifyWarning | yellow | Displays a warning or caution message |
NotifyInfo | blue | Displays an informational message |
Summary
- All exports are available on both client and server sides and can be used in any script.
-
Colors and durations can be customized in
config.lua.