Client Exports

Notification

--- @param data {table}
---  @field title {string?} Title. (Optional)
---  @field description {string?} Description. (Optional)
---  @field time {number?} Display time in milliseconds. (Optional)
---  @field color {string?} Notification color in HEX format, such as "#34ebe8". (Optional)
---  @field icon {string?} An icon class from Font Awesome, such as fa-solid fa-check. (Optional)
---  @field image {string?} URL of the image displayed. (Optional)
---  @field progressBar {string?} Progress bar type: "linear", "rounded", "rounded-icon". (Optional)
---  @field preset {string?} Name of the predefined preset from Config.NotificationsPresets. (Optional)
---  @field soundFile {string?} The name of the audio file, such as "notification-1.mp3". (Optional)
---  @field soundVolume {number?} Sound volume (range: 0-100). (Optional)
---  @field soundNative {table?} An array of native sound data that takes priority over soundFile. (Optional)
---  @field customCSS {table?} CSS style board for custom notification design. (Optional)
---    @field customCSS.icon {table} Icon styling, such as color or scaling.
---    @field customCSS.title {table} Title styling, such as font or size.
---    @field customCSS.description {table} Stylization of the description, such as font thickness.
---    @field customCSS.background {table} Background styling, such as color and border.
---    @field customCSS.background_glow {table} Styling the background glow effect.
exports['vms_notifyv2']:Notification(data)

Parameter soundNative requires 4 data because it runs on a native FiveM base PlaySoundFrontend you can use dev_nativesounds created by PainedPsyche to search for sounds.

Class customCSS works on the basis of default data from the CSS language.

Explanation

The use of parameters

A simple example of use

TopNotification

Explanation

The use of parameters

A simple example of use

Question

You don't need to enter the keys parameter - if it is not available, the default keys from Config.DefaultQuestionKeys will be activated, i.e. Y for accept, N for reject.

Explanation

The use of parameters

A simple example of use

ShowTextUI

Explanation

The use of parameters

Example of use in your scripts

UpdateTextUI


HideTextUI

Last updated

Was this helpful?