# ESX

es\_extended/client/functions.lua  \[Search **function ESX.ShowNotification** ]

#### Light Theme 👇

{% code title="es\_extended/client/functions.lua" overflow="wrap" lineNumbers="true" fullWidth="false" expandable="true" %}

```lua
function ESX.ShowNotification(message, notifyType, length, title, position)
    exports['nm1_notification']:Notify({
        title = title or 'Notification',
        message = message,
        type = notifyType or 'info',
        duration = length or 5000,
        position = position,
        theme = settings.notification_theme or 'light'
    })
end
```

{% endcode %}

#### Dark Theme 👇

{% code title="es\_extended/client/functions.lua" overflow="wrap" lineNumbers="true" fullWidth="false" expandable="true" %}

```lua
function ESX.ShowNotification(message, notifyType, length, title, position)
    exports['nm1_notification']:Notify({
        title = title or 'Notification',
        message = message,
        type = notifyType or 'info',
        duration = length or 5000,
        position = position,
        theme = settings.notification_theme or 'dark'
    })
end
```

{% endcode %}
