Server Events
Add Notification
TriggerClientEvent("9M-Notify:AddNotify", source, type, title, description, timeout)
- source
number
- The players ID or -1 for everyone. - 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)
TriggerClientEvent("9M-Notify:AddRightNotify", source, title, description, timeout)
- source
number
- The players ID or -1 for everyone. - 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
TriggerClientEvent("9M-Notify:AddLifeinvaderNotify", source, title, description, timeout, firstname, lastname, number)
- source
number
- The players ID or -1 for everyone. - 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
TriggerClientEvent("9M-Notify:AddAnnounce", source, title, description, timeout)
- source
number
- The players ID or -1 for everyone. - 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.