📝 Document Script (MDT)
A comprehensive Mobile Data Terminal (MDT) system with realistic "case file" book aesthetic.
✨ Features
👮♂️ Dual Job Support
| Job | Branding | Functions | Design |
|---|---|---|---|
| Police | Sheriff's Office | Accused, Penal Code, Involved Officers | Blue/Grey |
| Medic | Medical Center | Patients, Treatments, Involved Medics | Warm/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
-
Dependencies: Make sure these are installed:
vorp_coreoxmysql
-
Download: Copy
mulderdev_document_scriptto yourresourcesfolder -
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;
- Document Paper Item:
INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`) VALUES
('document_paper', 'Document Copy', 10, 1, 'item_standard', 1);
- Start: Add
ensure mulderdev_document_scriptto yourserver.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 policeConfig.Treatments- Treatments for medics
🎮 Usage
Open Menu
Press B (or configured key) as Police or Medic.
Create Record
- Click "New Record"
- Click items in the right list to add them
- Fill in details and click "SUBMIT"
Edit Record
- Click on a record in "History"
- Click "EDIT RECORD"
- Make changes
Print Copy
- View a record
- Click "PRINT COPY"
- 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