📪 Notifications
SendNotification
lua-- notification - table -- notification.app - string, app name -- notification.title - string, title of the notification -- notification.text - string, text of the notification -- notification.timeout - number(optional), timeout of the notification -- notification.icon - string(optional), icon of the notification -- toType: string, type of recipient, can be "phoneNumber" or "phoneImei" or "source" -- to: string, recipient's phone number or imei or playerId - source (optional) -- returns: boolean, true if phone is disabled, false if it isn't exports.yseries:SendNotification({ app = 'email', title = email.senderDisplayName, text = email.title, timeout = 3000, -- Default is 3000(optional). icon = 'https://cdn-icons-png.flaticon.com/128/10125/10125166.png', -- Default is the app icon. If you want custom, don't send `app`(optional). data = { -- optional serverEvent = 'test-server-event,' -- An event is to be triggered on the server side when a notification is clicked. clientEvent = 'test-client-event' -- An event is to be triggered on the client side when a notification is clicked. } }, 'phoneNumber', -- options: 'source' or 'phoneNumber' or 'phoneImei' '0881313') -- options: player id or phone number or phone imei