Matthias
  • 👋Welcome
  • 👶Getting started
  • 📞Callbacks
  • 🕑Variables
    • 🎯Getter functions
      • 🙏Fields available for getting
  • 🧑‍🦯Visuals
    • ◻️Shapes
      • 📏Line
      • ⚪Circle
      • ⬜Rectangle
    • 📸Media
      • 🖼️Image
      • 🔡Text
    • 🔔Notifications
  • ☁️Miscellaneous
    • 📲Image memory management
Powered by GitBook
On this page
  1. Visuals

Notifications

PreviousTextNextImage memory management

To display a Notification in Matthias you will have to provide the following arguments:

  • The text of the Notification (Caption): String

Every notification will display for 4 seconds, and all of them will be closable.

Notification types:

  • notification_error

  • notification_info

  • notification_basic

Notifications don't need to be called from a callback.

Example:

--Display a greeting notification when successfully connecting to a servert
function OnConnect() 
    notification_info("Welcome to the server!")
end
🧑‍🦯
🔔
OnDraw