Deltarix Scripts
TebexDiscord
  • Information
    • About Me - Deltarix
  • Keymaster
    • FiveM Asset Escrow
    • Authentication
    • Transfers
  • Paid Assets
    • MDT V3
      • Setup Guide
      • Configurations
        • Settings
        • Graphics
        • Locales
        • Themes
      • Exports
        • Server
          • OpenMDT
          • CloseMDT
          • CreateLog
          • GetBoloByLinkedId
          • GetIdentifierByStateId
          • GetOfficerByBadgenumber
          • GetOfficerByStateId
          • GetOfficerExists
          • GetOfficerFiredByStateId
          • GetOfficerSuspendedByStateId
          • GetPlayerFullNameByStateId
          • GetStateIdBySource
          • GetWantedByLinkedId
      • Public
        • Bridges
          • Server
            • Framework
              • qbx_core
              • qb-core
              • es_extended
            • Garage
              • qbx_garages
              • qb-garages
              • jg-advancedgarages
            • Inventory
              • ox_inventory
            • Licence
              • qbx_core
              • qb-core
            • Media
              • fivemanage
            • Property
              • qbx_properties
              • qb-apartments
              • qb-houses
              • qb-apartments & qb-housing
              • nolag_properties
              • qbx_properties & nolag_properties
        • Functions
          • Server
            • Create Card
            • Log
            • Prints
          • Client
            • Waypoint
            • Anim
      • Dependencies
    • MDT V2
      • Setup
      • Locales
      • Configurations
        • Server
        • Client
        • Settings
        • 10 Codes
        • Commands
      • Exports
        • Server
          • OpenMDT
          • OpenVehicleDetailsInMDT
          • GetStateId
          • GetOfficer
          • GetPlayerWanted
          • GetPlateFlagged
          • GetOfficerSuspended
          • GetWeaponRegistered
          • GetOfficerClockedIn
          • GetClosestCamera
          • CreateWeapon
          • CreateOfficer
          • DeleteOfficer
          • UpdateCitizenData
          • UpdateCitizenPoints
          • ToggleCamera
          • ToggleCameraTimeout
          • ToggleClock
        • Client
          • OpenMDT
          • InsertPhotoToGallery
      • Bridges
        • Server
          • Framework
            • es_extended
            • qb-core
            • qbx_core
          • Garage
            • esx_garage
            • qb-garages
            • qbx_garages
          • Inventory
            • ox_inventory
            • qb-inventory
          • Licence
            • es_extended
            • qb-core
            • qbx_core
          • Property
            • esx_property
            • qb-apartments
            • qbx_apartments
          • Utilities
            • Logger
        • Client
          • Garage
            • esx_garage
            • qb-garages
            • qbx_garages
          • Utilities
            • Camera
      • Dependencies
      • Known Bugs
      • Common Issues and Troubleshooting
    • Dispatch
      • Exports
        • Server
          • Notifications
          • IsDispatcher
          • GetDispatchersByGroup
          • GetGroups
          • GetStateId
        • Client
          • defaultNotification
          • officerNotification
          • dispatchNotification
          • Copy of dispatchNotification
      • Dependencies
Powered by GitBook
On this page
  • Step 1: Check Dependencies
  • Step 2: Database Collation, Scheduler & Compatibility
  • Step 3: Import Database Files
  • Step 4: Set Up Bridges
  • Step 5: Configure Settings
  • Step 6: Add Your First Officer

Was this helpful?

  1. Paid Assets
  2. MDT V3

Setup Guide

Last updated 17 hours ago

Was this helpful?

This guide is crafted to make installation and configuration as straightforward as possible. Just follow the steps below, and you’ll be up and running in no time. Embrace the simplicity of V3—let’s get started!


Step 1: Check Dependencies

Before starting, ensure all required dependencies for your server and framework are installed. See the page for a full list of what you’ll need. Double-check versions and requirements for your specific framework (QBox, QBCore, ESX, etc.).


Step 2: Database Collation, Scheduler & Compatibility

Your database collation must match what your framework uses for player and vehicle identifiers.

  • For Qbox/QBCore: Make sure players.citizenid and player_vehicles.plate columns have the same collation as the tables used by MDT (drx_players and drx_vehicles).

  • For ESX: Match the collation of users.license and owned_vehicles.plate to your MDT tables.

How to Check or Change Collation: You can use a tool like HeidiSQL, phpMyAdmin, or MySQL CLI:

  1. Open your database tool and navigate to your player/vehicle tables.

  2. Check the collation type for the relevant columns.

  3. If needed, right-click the column and select “Edit”, then set the collation to match your setup (commonly utf8mb4_general_ci or utf8mb4_unicode_ci).

Tip: Keeping collations consistent avoids character mismatch issues and failed lookups.

Database Schedular Requirement

Your MariaDB database scheduler must be enabled for the MDT to function correctly. This is required for scheduled database events and automatic expiration features. If the scheduler is not enabled, scheduled cleanups and expiries will not run.


Step 3: Import Database Files

All database files are located in the drx_mdt/setup/database folder within the resource.

3.1 – Import the Main Database Schema:

  • Import drx_mdt/setup/database/database.sql into your server’s database.

3.2 – Import Framework-Specific SQL:

Import the SQL file that matches your framework, e.g.:

  • drx_mdt/setup/database/framework/qbox.sql

  • drx_mdt/setup/database/framework/qbcore.sql

  • drx_mdt/setup/database/framework/es_extended.sql

If using a custom framework, you may adapt one of these or create your own.

3.3 – Import Default Data Files:

  • Import all SQL files found in drx_mdt/setup/database/data:

    • certificates.sql

    • charges.sql

    • departments.sql

    • disciplinary.sql

    • roles.sql

  • These files contain default values and can be customized in-game using the MDT.

Optional: Import Expiry Schedules

If you want certain data to expire automatically, you can also import optional files from drx_mdt/setup/database/schedules:

  • charges.sql: Enables automatic expiration for general charges.

  • points.sql: Enables automatic expiration of points.

Verification: After importing, confirm that the tables drx_players and drx_vehicles are populated with matching data from your framework (e.g., players to drx_players, player_vehicles to drx_vehicles for Qbox/QBCore).


Step 4: Set Up Bridges

Bridges are required for the MDT to communicate with your framework and other resources.

  • Premade Bridges: You can find a selection of premade bridge files in: drx_mdt/setup/bridges/ Choose the bridges you need for your integrations, and copy them into: drx_mdt/server/public/bridge/

  • Customizing Bridges: Every server setup is unique, so bridges may require adjustments to fit your specific requirements. If you need to make changes, you can modify the bridge files directly to suit your integration. Please note that ongoing maintenance and customization of these bridges is the responsibility of each customer/server owner.

  • Don't see a bridge you need? If a bridge for your desired integration is not included, you are welcome to create your own. The system is designed to be flexible and accommodate a wide range of scripts.


Step 5: Configure Settings

Adjust your MDT web configuration to fit your server’s needs:

  • Edit the file: drx_mdt/web/configurations/settings.json

  • Configure all relevant options, including URLs, permissions, appearance, etc.


Step 6: Add Your First Officer

Everything should now be ready! To add the first officer (admin/setup step only):

  1. Get the stateid for the user from the drx_players table.

  2. Run the following command in your server-side console:

    drx_mdt_hire {stateid}

    Replace {stateid} with the appropriate value.

  3. Important: This command should only be used to add the very first officer. Afterward, all hiring and management is handled through the MDT in-game.


That’s it! Your MDT is now fully set up and ready to use. If you run into any issues, check the troubleshooting section or reach out for support.

Dependencies