# Notification Usage

## Types

### Notification

<table><thead><tr><th>Field</th><th>Type</th><th>Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>text</td><td>string</td><td>Text to show</td><td>true</td></tr><tr><td>leftIcon</td><td>string | string[]</td><td>Font Awesome Icon</td><td>false</td></tr><tr><td>rightIcon</td><td>string</td><td>Font Awesome Icon</td><td>false</td></tr><tr><td>color</td><td>string</td><td>Color hex code</td><td>false</td></tr><tr><td>timeout</td><td>number</td><td>Remove timeout</td><td>false</td></tr></tbody></table>

***

## Examples

```lua
TriggerEvent("no-alerts:notification", {
    text = "You've entered the danger zone",
    leftIcon = "radiation"
})

exports["no-alerts"]:SendNotification("You left the danger zone", "radiation", "#F92F04")
```
