# Configuration

### &#x20;Locale

```lua
Config.Locale = 'en'
```

Sets the default language for notifications.

• Available options: '**en', 'de', 'cs', 'fr'**

• These correspond to the files inside the **/locales** folder.

***

### Default Time

```lua
Config.DefaultTime = 5000
```

Defines how long (in **milliseconds**) each notification stays visible on screen by default.

***

### Settings Page

```lua
Config.SettingsPage = {
    command = {
        enable = true,
        name = "notifysettings"
    },
    key = {
        enable = true,
        keyNum = 20 -- Z key
    }
}
```

Enables an in-game Settings Panel for players.

• **command.enable:** Allows opening the panel with a chat command.

• **command.name:** The chat command name (e.g., /notifysettings).

• **key.enable:** Allows opening with a keyboard shortcut.

• **keyNum:** Keyboard key code (use [this reference](https://docs.fivem.net/docs/game-references/controls/)).

***

### Minimize & Maximize

```lua
Config.MinimizeMaximize = {
    enable = true,
    key = 47 -- G key
}
```

Lets players minimize/maximize the notification UI.

• Toggle with a key defined by its control index (e.g., 47 = G)

***

### Notification Types

```lua
Config.notificationTypes = {
    ['server'] = {
        header = "Server",
        light = "./assets/icons/light/server.png",
        dark = "./assets/icons/dark/server.png",
        sound = "./assets/sounds/notification_sound.mp3"
    },
    ...
}
```

Defines custom **notification types** that control icons, headers, and sounds.

Each type includes:

• **header:** The title shown in the notification.

• l**ight / dark:** Icons for light or dark mode.

• **sound:** Sound path (or false to mute).

🔹 **Built-in Notification Types:**

| ID           | Header       |
| ------------ | ------------ |
| server       | Server       |
| announcement | Announcement |
| info         | Information  |
| date         | Date         |
| error        | Error        |
| success      | Success      |
| bank         | Bank         |
| status       | Status       |

You can add your own by creating a new object in the same format.

***

### Locales

```lua
Config.Locales = {} -- do not change
```

• This setting is managed by the script internally.

• No need to edit this unless you’re modifying core localization logic.
