Main Configuration
The main configuration section contains the general settings that affect the entire script's behavior.
Basic Options
Opening Command
OpenTabletCmd = "tablet"This is the command players will use to open the tablet interface.
OpenTabletCmd
string
"tablet"
Command to open the tablet (without /)
Example:
OpenTabletCmd = "doj" -- Players will use /dojDebug Mode
DebugMode = trueEnable or disable debug information in the console.
DebugMode
boolean
false
Display debug information in console
Important: Set DebugMode = false in production to avoid console spam.
When to use Debug Mode:
✅ During initial setup
✅ When troubleshooting issues
✅ When testing new configurations
❌ In production (regular use)
User Interface Language
LocaleUi = "fr"Set the default language for the user interface.
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
Text Messages
Customize the messages displayed to players:
Strings = {
no_permission = "You are not authorized to use this.",
}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:
Webhooks = {
WarrantView = "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL_HERE"
}WarrantView
string
Discord webhook URL for warrant notifications
How to get a Discord webhook:
Go to your Discord server
Select a channel → Edit Channel
Integrations → Webhooks → New Webhook
Copy the webhook URL
Paste it in the configuration
What gets sent:
Warrant creation notifications
Warrant issuance alerts
Warrant details (suspect, type, issuing officer)
Example Complete Configuration
Here's a complete example of the main configuration:
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 - Set up your police and justice departments
Need help? Visit our Support page.
Last updated
Was this helpful?