πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Possible mistakes

Attempt to index a nil value

Fill this line in config.lua:

--Discord webhook required for photos taken of criminals
Config.DiscordWebhook = ""

Solution

Make sure to add your Discord webhook URL for the mugshot photo system to work correctly. The webhook is required for uploading criminal photos.

Example:

Config.DiscordWebhook = "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL"

Screenshots not working

If the mugshot system is not taking photos, ensure:

  1. screenshot-basic is properly installed and started
  2. screenshot-basic is started BEFORE bit-policemdt in your server.cfg
  3. Your Discord webhook is correctly configured

MDT not opening

If the tablet doesn't open:

  1. Verify your job is listed in Config.authorizedJobs
  2. Check that the command is correct: default is /mdt
  3. Verify the OpenKey if using key binding (default: 344)

Database errors

If you encounter SQL errors:

  1. Ensure both tables are created (bit_policemdt and bit_policemdt_fines)
  2. Verify your MySQL connector is set correctly in Config.Mysql
  3. Check that your database user has proper permissions