Docs

    Advanced MDT — Installation and Setup Guide

    Its tables create themselves on first start — no SQL to import.

    Requirements

    • A QBCore or QBox server, CFW included
    • oxmysql
    • ox, qb, qs, ps or lj-inventory
    • Optional: qb-houses, ps-housing or qs-housing
    • An Advanced MDT licence or the scripts subscription

    Installation

    1. 1
      Buy Advanced MDT or the scripts subscription on our store.
    2. 2
      Sign in at panel.d7team.com with Discord.
    3. 3
      Client Area → Redeem Code: enter the code and your server's public IP.
    4. 4
      Download d7-mdt from the Client Area and put it in resources.
    5. 5
      Add the mdtlaptop item to your inventory's items.
    6. 6
      Set your framework, inventory and departments in config/config.lua.
    7. 7
      In server.cfg, start it after your database, framework and inventory:
      ensure oxmysql
      ensure qb-core
      ensure qb-inventory
      ensure d7-mdt
    8. 8
      Restart the server.

    config/config.lua

    The settings you will change. Everything else can stay as it ships.

    Config.Framework = 'qbcore'
    qbcore or qbox
    Config.Inventory = 'qb-inventory'
    Your inventory resource
    Config.Housing = 'qb'
    none, qb, ps-housing or qs-housing
    Config.OpenItemName = 'mdtlaptop'
    Item that opens the tablet
    Config.RequireItemToOpen = true
    Command and key need the item
    Config.OpenCommandName = 'mdt'
    Chat command, without the slash
    Config.OpenKeybindEnabled = false
    Open with a key
    Config.Interaction = 'auto'
    auto, target, interact or marker
    Config.ShareCases = false
    Share cases between MDT jobs
    Config.Webhooks
    Discord logs for each section
    Config.Profiles
    One entry per department job
    • A profile's key must match the job name exactly, e.g. police.
    • Permissions are the minimum grade; 99 turns an action off.
    • Coords adds places to open the tablet, vector3 or vector4.

    First start

    • The console prints "License Approved".
    • An officer with the laptop item types /mdt.

    Updates

    • Updates download on their own when the resource starts — the console prints "Update installed".
    • The new version runs only after a restart: when you see "Restart Required for update", restart the resource.
    • If it says "Run refresh", type refresh first, then restart the resource.

    Troubleshooting

    No supported framework has started yet (qbx_core or qb-core).
    Start qb-core or qbx_core before this resource.
    This IP is not linked to a license. Redeem a code to link it, then restart
    Redeem your code with this server's IP, then restart.
    This server's IP does not match the IP on the license.
    Ask us on Discord to update the licence IP.
    Your license is expired. Renew it.
    Renew from our store, then restart.
    Your license does not cover this product.
    Redeem a code for this product.
    The resource folder must be named
    Rename the folder and its ensure line to the name shown.
    The update is not loaded yet. Run refresh, then restart
    Type refresh in the console, then restart the resource.
    The API is unreachable or busy.
    It retries on its own. Check the server's internet if it stays.
    is no longer supported. Install the latest release
    Get the latest release from the Client Area, replace the folder, refresh and restart.
    This license is not active. Contact D7 support.
    Contact us on Discord.
    This IP is linked to more than one license.
    Contact us on Discord to keep one licence on this IP.
    This server could not determine its own IP.
    Check the server can reach the internet, then restart.
    The tablet does not open
    Check the player's job has a profile and they carry mdtlaptop.

    Stuck? Ask us on Discord — the people who wrote it answer.

    Ask on DiscordAbout this resource