🔔showNotification

Display a notification with an icon

📤 Exports

You can trigger notifications from any script using the provided exports:

🧾 showNotification

Displays a simple informational notification.

exports['weNotif']:showNotification(icon, iconColor, message, duration)

Replace the variables icon, iconColor, message, and duration with your desired values to customize the notification as needed.

Parameters:

  • icon: FontAwesome icon class (e.g. fa-solid fa-triangle-exclamation) https://fontawesome.com/icons

  • iconColor: ('green', 'orange', 'blue', 'purple', 'yellow', 'grey', 'pink', 'red')

  • message: Text content

  • duration: Optional (defaults to config)

Last updated