Server Side Use

Trigger Notify

TriggerClientEvent("bs-advnotifications:client:showNotify", playerId, {
  title = "Example title",
  description = "Example description",
  duration = 7000,
  type = "success",
})

Parameters

  • playerId - player id (if -1 then send to all players)
  • data
    • title – notification title
    • description – description
    • duration? – duration (ms)
      • default: 5000
    • showDuration? – whether to show the time bar
      • default: true
    • position? – position
      • default: the one selected by the player in their settings
    • type? – notification type
      • default: info