Mekez DEV
  • Information
  • PAID RESOURCES
    • 💰Money Wash
      • Installation
      • Configuration
      • Locales
    • 📢Notify v2
      • Usage
      • Installation
  • FREE RESOURCES
    • 🚘Carkeys
      • Installation
      • Configuration
Powered by GitBook
On this page
  • 🎨 Notification Types
  • Client Side
  • Server Side
  1. PAID RESOURCES
  2. Notify v2

Usage

🎨 Notification Types

Default notification types:

  • success - Green notification for successful actions

  • error - Red notification for errors

  • warning - Orange notification for warnings

  • info - Blue notification for information

Client Side

exports['mkz-notify2']:SendNotification({
    title = 'Title',
    message = 'Message',
    type = 'type',
    duration = 5000,
    sound = true
})

Server Side

To send to a specific player (source is the player ID)

-- Send to specific player
exports['mkz-notify2']:SendNotificationToPlayer(source, {
    title = 'Title',
    message = 'This is a notification message',
    type = 'success',
    duration = 5000,
    sound = true
})

To send to all players

-- Send to all players
exports['mkz-notify2']:SendNotificationToAll({
    title = 'Announcement',
    message = 'Server-wide message',
    type = 'warning',
    duration = 5000,
    sound = true
})
PreviousNotify v2NextInstallation

Last updated 1 month ago

📢