Skip to main content

📝 Document Script (MDT)

A comprehensive Mobile Data Terminal (MDT) system with realistic "case file" book aesthetic.

✨ Features

👮‍♂️ Dual Job Support

JobBrandingFunctionsDesign
PoliceSheriff's OfficeAccused, Penal Code, Involved OfficersBlue/Grey
MedicMedical CenterPatients, Treatments, Involved MedicsWarm/Paper

📝 Record Management

  • Create Records - Detailed forms for incidents, crimes, or treatments
  • Edit Records - Update existing case files, change status
  • History & Filter - View all past records, filtered by status (Open, In Progress, Closed)
  • Status System - Track cases from "Open" to "Closed" with visual stamps
  • 🖨️ Document Copies - Create physical copies that can be given to other players

🌍 Localization

  • Multi-Language - Fully configurable text for all UI elements
  • Included: English (en) and German (de)

🎨 Design

  • Book Aesthetic - UI looks like an open case file/ledger
  • Dynamic Content - Stamp effects for closed cases
  • Period Typography - Appropriate fonts for the RedM era

📥 Installation

  1. Dependencies: Make sure these are installed:

    • vorp_core
    • oxmysql
  2. Download: Copy mulderdev_document_script to your resources folder

  3. Database: Import mulderdev_records.sql:

CREATE TABLE IF NOT EXISTS `mulderdev_records` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`reference_id` int(11) DEFAULT NULL,
`type` varchar(50) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`author_identifier` varchar(50) DEFAULT NULL,
`author_name` varchar(100) DEFAULT NULL,
`target_name` varchar(100) DEFAULT NULL,
`description` longtext DEFAULT NULL,
`fine_amount` decimal(10,2) DEFAULT 0.00,
`status` varchar(50) DEFAULT 'open',
`date_created` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  1. Document Paper Item:
INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`) VALUES
('document_paper', 'Document Copy', 10, 1, 'item_standard', 1);
  1. Start: Add ensure mulderdev_document_script to your server.cfg

⚙️ Configuration

Config.Locale = 'en'    -- 'de' or 'en'
Config.OpenKey = 0x4CC0E2FE -- B key

Config.Jobs = {
Police = { "police", "sheriff", "marshal" },
Medic = { "doctor", "medic" }
}

Charges & Treatments

You can define custom categories in config.lua:

  • Config.Fines - Penal code for police
  • Config.Treatments - Treatments for medics

🎮 Usage

Open Menu

Press B (or configured key) as Police or Medic.

Create Record

  1. Click "New Record"
  2. Click items in the right list to add them
  3. Fill in details and click "SUBMIT"

Edit Record

  1. Click on a record in "History"
  2. Click "EDIT RECORD"
  3. Make changes
  1. View a record
  2. Click "PRINT COPY"
  3. You receive a physical item

Read Copy

Use the document_paper item in your inventory (read-only).


🔗 External Integration

Open the menu from another script (e.g., Radial Menu):

TriggerEvent("mulderdev_document_script:open")

📋 Requirements

  • VORP Core
  • oxmysql