> For the complete documentation index, see [llms.txt](https://documentation.madonnestudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.madonnestudio.com/paid-scripts/madonnedoj/configuration/main-configuration.md).

# Main Configuration

The main configuration section contains the general settings that affect the entire script's behavior.

## Basic Options

### Opening Command

```lua
OpenTabletCmd = "tablet"
```

This is the command players will use to open the tablet interface.

| Property        | Type     | Default    | Description                              |
| --------------- | -------- | ---------- | ---------------------------------------- |
| `OpenTabletCmd` | `string` | `"tablet"` | Command to open the tablet (without `/`) |

**Example:**

```lua
OpenTabletCmd = "doj" -- Players will use /doj
```

### Debug Mode

```lua
DebugMode = true
```

Enable or disable debug information in the console.

| Property    | Type      | Default | Description                          |
| ----------- | --------- | ------- | ------------------------------------ |
| `DebugMode` | `boolean` | `false` | Display debug information in console |

{% hint style="warning" %}
**Important:** Set `DebugMode = false` in production to avoid console spam.
{% endhint %}

**When to use Debug Mode:**

* ✅ During initial setup
* ✅ When troubleshooting issues
* ✅ When testing new configurations
* ❌ In production (regular use)

### User Interface Language

```lua
LocaleUi = "fr"
```

Set the default language for the user interface.

| Property   | Type     | Default | Options                   | Description                                       |
| ---------- | -------- | ------- | ------------------------- | ------------------------------------------------- |
| `LocaleUi` | `string` | `"fr"`  | `"fr"`, `"en"`, or custom | UI language (must match a file in `/ui/locales/`) |

**Available languages:**

* 🇫🇷 `"fr"` - French
* 🇬🇧 `"en"` - English
* 🌍 Custom - [Add your own language](/paid-scripts/madonnedoj/configuration/adding-a-new-language.md)

## Text Messages

Customize the messages displayed to players:

```lua
Strings = {
  no_permission = "You are not authorized to use this.",
}
```

| Key             | Default Value                           | Description                                                              |
| --------------- | --------------------------------------- | ------------------------------------------------------------------------ |
| `no_permission` | `"You are not authorized to use this."` | Message shown when a player tries to access something without permission |

You can add more custom messages here and reference them throughout your script.

## Webhooks Configuration

Configure Discord webhooks for notifications:

```lua
Webhooks = {
  WarrantView = "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL_HERE"
}
```

| Property      | Type     | Description                                   |
| ------------- | -------- | --------------------------------------------- |
| `WarrantView` | `string` | Discord webhook URL for warrant notifications |

**How to get a Discord webhook:**

1. Go to your Discord server
2. Select a channel → Edit Channel
3. Integrations → Webhooks → New Webhook
4. Copy the webhook URL
5. Paste it in the configuration

**What gets sent:**

* Warrant creation notifications
* Warrant issuance alerts
* Warrant details (suspect, type, issuing officer)

{% hint style="info" %}
**Optional:** You can leave the webhook empty if you don't want Discord notifications.
{% endhint %}

## Example Complete Configuration

Here's a complete example of the main configuration:

```lua
CONFIG_MADONNE_DOJ = {
  -- Basic Settings
  OpenTabletCmd = "tablet",
  DebugMode = false,
  LocaleUi = "en",
  
  -- Messages
  Strings = {
    no_permission = "You are not authorized to use this.",
  },
  
  -- Services will be configured in the next section
  Services = {
    -- See Services Configuration
  },
  
  -- Discord Integration
  Webhooks = {
    WarrantView = "https://discord.com/api/webhooks/1234567890/abcdefgh"
  }
}
```

## Next Steps

Now that you've configured the main settings, continue with:

* [Services Configuration](/paid-scripts/madonnedoj/configuration/services-configuration.md) - Set up your police and justice departments

***

Need help? Visit our [Support page](/paid-scripts/madonnedoj/support.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://documentation.madonnestudio.com/paid-scripts/madonnedoj/configuration/main-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
