# 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"
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maxifaxipaxi-1.gitbook.io/mfpscripts-fivem-discontinued/scripts/notify.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
