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

# Exports List

## Server Exports

Server exports are used to send a notification to a specific player from the server side.

<mark style="color:$primary;">**exports\['izaap\_notify']:Notify(source, data, notifyType, duration, title)**</mark>

Sends a notification to the specified player.

#### Parameters

* `source` (`number`)
  * The target player server ID.
* `data` (`string|table`)
  * The notification content.
  * You can use a simple string or a full table payload.
* `notifyType` (`string`, optional)
  * Used when `data` is a string.
  * Supported values:
    * `success`
    * `info`
    * `warning`
    * `error`
* `duration` (`number`, optional)
  * Duration in milliseconds.
  * If omitted, the default duration from the config will be used.
* `title` (`string`, optional)
  * Custom notification title.
  * If omitted, the default title for the selected type will be used.

#### Basic Example

```lua
exports['izaap_notify']:Notify(source, 'Your vehicle has been stored successfully.', 'success', 5000, 'Garage')
```

#### Full Table Example

```lua
exports['izaap_notify']:Notify(source, {
    type = 'warning',
    title = 'Attention',
    message = 'You are entering a restricted area.',
    duration = 6000
})
```

<mark style="color:$primary;">**exports\['izaap\_notify']:ShowNotification(source, data, notifyType, duration, title)**</mark>

Alternative export name for the same functionality.

This behaves exactly the same as `Notify`.

#### Example

```
exports['izaap_notify']:ShowNotification(source, 'You received a new alert.', 'info', 5000, 'Notificat
```

## Server Event

The resource also includes a built-in server event:

<mark style="color:$primary;">**izaap\_notify:server:notify**</mark>

This event sends a notification to the player who triggered it.

#### Table Example

```lua
TriggerServerEvent('izaap_notify:server:notify', {
    type = 'success',
    title = 'Completed',
    message = 'Your action was completed successfully.',
    duration = 5000
})
```

#### String Example

```lua
TriggerServerEvent('izaap_notify:server:notify', 'Saved successfully.', 'success', 5000, 'System')
```

***

## Client Exports

Client exports are used to display notifications directly on the local player screen.

<mark style="color:$primary;">**exports\['izaap\_notify']:Notify(data, notifyType, duration, title)**</mark>

Displays a notification instantly for the local client.

#### Parameters

* `data` (`string|table`)
  * The notification content.
  * You can use a simple string or a full table payload.
* `notifyType` (`string`, optional)
  * Used when `data` is a string.
  * Supported values:
    * `success`
    * `info`
    * `warning`
    * `error`
* `duration` (`number`, optional)
  * Duration in milliseconds.
  * If omitted, the default duration from the config will be used.
* `title` (`string`, optional)
  * Custom notification title.
  * If omitted, the default title for the selected type will be used.

#### Basic Example

```lua
exports['izaap_notify']:Notify('Vehicle stored successfully.', 'success', 5000, 'Garage')
```

#### Full Table Example

```lua
exports['izaap_notify']:Notify({
    type = 'info',
    title = 'Information',
    message = 'Your garage has been updated.',
    duration = 5000
})
```

***

<mark style="color:$primary;">**exports\['izaap\_notify']:ShowNotification(data, notifyType, duration, title)**</mark>

Alternative export name for the same functionality.

This behaves exactly the same as `Notify`.

#### Example

```lua
exports['izaap_notify']:ShowNotification('You received a new message.', 'info', 5000, 'Notification')
```

***

## Client Event

The resource also includes a built-in client event:

<mark style="color:$primary;">**izaap\_notify:client:notify**</mark>

This event displays a notification directly on the local client.

#### Table Example

```lua
TriggerEvent('izaap_notify:client:notify', {
    type = 'warning',
    title = 'Attention',
    message = 'You are entering a restricted area.',
    duration = 6000
})
```

#### String Example

```lua
TriggerEvent('izaap_notify:client:notify', 'Action completed successfully.', 'success', 5000, 'System')
```

***

## Data Payload

When using a table as the `data` argument, the following fields are supported by the notification builder on the client side.

* `type` (`string`)
* `title` (`string`)
* `message` (`string`)
* `text` (`string`)
* `duration` (`number`)

#### Example

```lua
{
    type = 'error',
    title = 'Error',
    message = 'Something went wrong.',
    duration = 5000
}
```

> `message` and `text` can both be used as the main notification text.
