> For the complete documentation index, see [llms.txt](https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/scripts/notify.md).

# Notification

Server.cfg

```javascript
start mfp_notify
```

Config.lua

```lua
Config = {}
Config.defaultLocation = 'top-left' 
-- can be 'top-right', 'top-left' or 'bottom-left'
```

## Exports (clientside)

Integration of our notification script in your client.lua

```lua
-- DEFAULT
exports['mfp_notify']:ShowNotification(
  "Maps",
  "~y~Yellow Text~w~ and ~g~Green Text~w~ work!",
  "icons/maps-icon.png"
)
-- use default icons from icons folder or use direct link.

-- ADVANCED
exports['mfp_notify']:ShowNotification(
  "Mission Update", -- Title (App Name)
  "~r~This is a test notification~w~ in the top left.", -- Description (with colorcode and multiline support)
  "https://mfpscripts.com/icon.png", -- can be icons/*.* or link
  "top-left" -- can be top-left, top-right or bottom-left
)
-- use top-left, top-right or bottom-left (In the Config.lua you can choose default, so you dont nead a value here.
```

## Exports (serverside)

Integration of our notification script in your server.lua

```lua
-- DEFAULT
exports['mfp_notify']:ShowNotification(
  source, -- can be playersource to show the right client
  "Maps",
  "~y~Yellow Text~w~ and ~g~Green Text~w~ work!",
  "icons/maps-icon.png"
)
-- use default icons from icons folder or use direct link.

-- ADVANCED
exports['mfp_notify']:ShowNotification(
  source,
  "Mission Update", -- Title (App Name)
  "~r~This is a test notification~w~ in the top left.", -- Description (with colorcode and multiline support)
  "https://mfpscripts.com/icon.png", -- can be icons/*.* or link
  "top-left" -- can be top-left, top-right or bottom-left
)
-- use top-left, top-right or bottom-left (In the Config.lua you can choose default

exports['mfp_notify']:ShowNotificationToAll(
  "Maps",
  "~y~Yellow Text~w~ and ~g~Green Text~w~ work!",
  "icons/maps-icon.png",
  "bottom-left"
)
```
