Next Scripts
  • Introduction
  • PAID RESOURCES
    • 📦Job Creator
      • Installation
      • Configuration
        • Client Configuration
        • Server Configuration
      • Exports
        • Client Exports
        • Server Exports
      • Commands
      • FAQ
    • 🍂 Drug System
      • Installation
      • Configuration
    • 📢 Notify
      • Installation
      • Configuration
      • Exports
        • Client Exports
        • Server Exports
    • 🎇 Event Tablet
      • Installation
      • Configuration
  • FREE RESOURCES
    • 🍁 Npc Drug Sells
      • Installation
      • Configuration
    • 👆🏻 Targeting
      • Installation
      • Configuration
      • Client Exports
      • Examples
    • 💻 Dispatch
      • Installation
      • Client Exports
      • Server Exports
      • Commands
Powered by GitBook
On this page
  1. PAID RESOURCES
  2. 📢 Notify
  3. Exports

Server Exports

PreviousClient ExportsNext🎇 Event Tablet

Last updated 1 year ago

ShowNotification

exports.nx-notify:ShowNotification(source, data)

source: number player's ID

data: table

  • message: string the notification message

  • align?: string the notification alignment

  • title?: string the notification title

  • type?: string the notification type:

    • info (default)

    • success

    • error

    • warning

  • icon?: string icon or https link

  • timeout?: number how many milliseconds the message shows up

For defaults value choose it in the


Success notification with title

    local source = source
    exports.nx-notify:ShowNotification(source, {
        message = "This is a success notification",
        type    = "success",
        title   = "Congratulation",
    })

Info notification with title and custom alignment

    local source = source
    exports.nx-notify:ShowNotification(source, {
        message = "This is an info notification",
        type    = "info",
        title   = "Info",
        align   = "center"
    })

FontAwesome
Config