> For the complete documentation index, see [llms.txt](https://hrscripts.gitbook.io/hrscripts-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hrscripts.gitbook.io/hrscripts-documentation/resources/hrlib/modules/interface/server.md).

# Server

## Notify

Function to send notification to a player with HRLib's notification system

```lua
function HRLib.Notify(
    playerId: integer,
    description: string,
    type: 'success'|'error'|'info'|'warning',
    duration: number?,
    pos: 'top-right'|'center-right'|'bottom-right'|'frombelow-right'|
    'top-left'|'left-center'|'frombelow-left'?,
    sound: boolean?
)
```

Parameters description

* playerId - the player Id to use when sending the notification
* description - the notification's content
* type - the notification type (default is 'info')
* duration - the notification duration (default is 2500, in msec)
* pos - the notification position on the screen (default is found in HRLib's config)
* sound - sets whether or not the notification sound should be played (default is true)

Preview

<figure><img src="https://1248811810-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXqbA5Sf27l8s5N2ZDHzg%2Fuploads%2FMCeqwtzvzDw1wujfmIiW%2FScreenshot_40.png?alt=media&amp;token=0fa1ae00-a4d7-4ab8-97cb-3f405870fe32" alt=""><figcaption></figcaption></figure>
