Server

You can use these functions in any server side code to show custom notifications.


Parameters:

  • title?: string

Title of the notification

  • message?: string

Main message of the notification.

  • type?: string

Use any: "success", "error", "info", "warning"

  • duration?: number

Duration in milliseconds (ex: 5000)


TriggerClientEvent('ft_notification:ShowNotify', source, message, type, duration)
TriggerClientEvent('ft_notification:ShowNotifyWithTitle', source, title, message, type, duration)

Last updated