PoisonCode Docs
TebexDiscordYoutube
  • SCRIPTS
    • 💡pc_collections
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ› ī¸Exports & events
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
        • 🔌Version compatibility
    • 💎pc_organizations
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ› ī¸Exports & events
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
        • 🔌Version compatibility
    • 💡pc_skills
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ› ī¸Exports & events
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
    • đŸ“Ļpc_airdrop
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
    • đŸ’Ŧpc_notifications
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ•šī¸Usage
Powered by GitBook
On this page
  • There are two ways of sending a notification:
  • By event:
  • By export:

Was this helpful?

  1. SCRIPTS
  2. pc_notifications

Usage

Quick usage tutorial

Each notification call should consist of following:

  • Type - one of 5 notifications types (see Features)

  • Title - notification title

  • Text - notification text

  • Time - how long should the notification stay on screen (in miliseconds)

  • Sound - should the sound be played (true/false)

There are two ways of sending a notification:

By event:

Triggering on client side:

TriggerEvent('pc_notifications:Notify', type, title, text, time, true) 

Triggering on server side:

TriggerClientEvent('pc_notifications:Notify', playerId, type, title, text, time, true) 

By export:

exports['pc_notifications']:Notify(type, title, text, time, true)
PreviousInstallation & dependencies

Last updated 1 year ago

Was this helpful?

đŸ’Ŧ
đŸ•šī¸