🔔showNotification
Display a notification with an icon
📤 Exports
You can trigger notifications from any script using the provided exports:
🧾 showNotification
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/iconsiconColor
: ('green', 'orange', 'blue', 'purple', 'yellow', 'grey', 'pink', 'red')message
: Text contentduration
: Optional (defaults to config)
Last updated