nut.notice - Chessnut/NutScript GitHub Wiki

This library is used to handle the display of notifications to players. These notifications can be seen on the top right corner of the screen. This library is a component of the nut.util library.

Method

  • nut.util.notify(message[, recipient])
  • On the server, this sends a notification to the specified recipient. The recipient can be nil to broadcast the notification. On the client, this function creates a new notification and the recipient is not used.
  • nut.util.notifyLocalized(message[, recipient, ...])
  • On the server, this sends a localized message to the recipient with the given parameters. Use this function to send translated messages if applicable as it does so more efficiently. On the client, this function does not have the recipient parameter.

Extensions

Player

  • client:notify(message)
  • Sends a notification to the client.
  • client:notifyLocalized(message[, ...])
  • Sends a localized message to the client more efficiently.