Exports
Add Notification
exports["9m-notify"]:AddNotify(type, title, description, timeout) -- types: "info", "success", "error", "warning"
- type:
string
, possible values:info
,success
,error
,warning
- title:
string
- description:
string
- timeout?:
number
- This defines the time, how long the announcement is being shown. If it's not defined, we use our exclusive logic to generate a time based on length.
Add Notification (from the right side)
exports["9m-notify"]:AddRightNotify(title, description, timeout)
- title:
string
- description:
string
- timeout?:
number
- This defines the time, how long the announcement is being shown. If it's not defined, we use our exclusive logic to generate a time based on length.
Add Lifeinvader Notification
exports["9m-notify"]:AddLifeinvaderNotify(title, description, timeout, firstname, lastname, number)
- title:
string
- description:
string
- timeout?:
number
- This defines the time, how long the announcement is being shown. If it's not defined, we use our exclusive logic to generate a time based on length. - firstname?:
string
- This defines the firstname which is shown in the notification - lastname?:
string
- This defines the lastname which is shown in the notification - number?:
number
- This defines the phone number which is shown in the notification
Add Announcement
exports["9m-notify"]:AddAnnounce(title, description, timeout)
- title:
string
- description:
string
- timeout?:
number
- This defines the time, how long the announcement is being shown. If it's not defined, we use our exclusive logic to generate a time based on length.