πŸ•ΉοΈ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)

Last updated

Was this helpful?