Documentation
  • 📄TeamsGG Documentation
    • Common Errors
  • Paid Scripts
    • 📱Phone
      • 🧠Installation
      • 🦄Unique phones
      • 💿Configure
        • 💄Additional Features
        • 📸Camera
        • 🍏Apps
        • 🪵Logs
        • 🖼️Media Customization
        • 🗣️Multi-Language Support
        • 🗃️SIM Cards
        • 🚗Valet System
      • ⏭️Exports
        • Client side
          • 👁️‍🗨️General
          • ☀️Groups
          • 🏢Companies
          • 🔧Misc
        • Server side
          • 🆔Identify Player
          • ☎️Sim Cards
          • ☀️Groups
          • 🌐Cell Broadcast
          • 💸YPay
          • 📧Mail
          • 📪Notifications
          • 📵Screen Damage
          • 🔧Misc
      • 🪛Commands
      • 🍎Custom apps
    • ☎️Boomer Phone
      • 🧠Installation
      • 🦄Unique phones
      • ⏯️Exports
        • Client side
    • 🏠Properties
      • 🧠Installation
      • 💿Configure
      • 🐚Add More Shells
      • ⏭️Exports
        • Client side
          • GetCurrentPropertyId
          • GetCurrentProperty
          • IsPointInsideProperty
          • OpenPropertyMenu
          • AddKey
          • RemoveKey
          • SetWaypointToProperty
          • GetAllProperties
          • GetKeyHolders
          • PoliceRaidDoor
        • Server side
          • GetAllProperties
          • AddKey
          • RemoveKey
          • ToggleDoorlock
          • GetPlayersInProperty
          • GetKeyHolders
          • DeleteProperty
          • AddStarterApartment
      • 👜State bags
    • 🏦Banking
      • 🧠Installation
      • ⏯️Exports
        • Client side
        • Server side
    • 💸Billing
      • 🧠Installation
      • ⏭️Exports
        • Client side
        • Server side
    • 📊Hud
      • 🧠Installation
      • ⏭️Exports
        • Client side
    • 📦Storage Units
      • 🧠Installation
Powered by GitBook
On this page
  1. Paid Scripts
  2. Phone
  3. Exports
  4. Server side

Notifications

SendNotification

-- 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
PreviousMailNextScreen Damage

Last updated 3 days ago

📱
⏭️
📪