# Exports // Triggers

| Variable | Type              | Example                                 |
| -------- | ----------------- | --------------------------------------- |
| type     | string            | info, error, success, twitter, dispatch |
| message  | string            | Test message                            |
| header   | string or boolean | 10-13a, Some text or false              |
| time     | number            | 20000                                   |

## Lua code examples for Client Side

```lua
exports["sfnotify"]:notify(type, message, header, time)

-- examples, default time is 10000
exports["sfnotify"]:notify("info", "test message")
exports["sfnotify"]:notify("info", "test message", false, 5000)
exports["sfnotify"]:notify("info", "test message", "Notification")
```

```lua
TriggerEvent("sfnotify", "dispatch", "test message", "10-13a")
```

```lua
TriggerEvent("sfnotify:cinematic", true) -- if set true notifications do not show
TriggerEvent("sfnotify:cinematic", false) -- if set false notifications show up
```

## Lua code examples for Server Side

```lua
TriggerClientEvent("sfnotify", source, "info", "test message")
```
