Skip to main content

🔬 Forensics System

A comprehensive investigation and evidence system for RedM (VORP Core).

✨ Features

  • Realistic Evidence - Shell casings (yellow) and blood stains (red) appear automatically
  • Investigator Mode - See evidence markers with Investigation Kit
  • Ballistics - Analyze casings: Weapon model, ammo type, serial number
  • Blood & DNA - Analyze blood: Determine blood type
  • DNA Matching System - Take DNA samples from suspects and compare
  • Dynamic Reports - Automatic updates when DNA match is found
  • Unique IDs - Every piece of evidence has a unique case ID (e.g., #8291)
  • Fingerprint System - Fingerprints on shell casings (V1.1)

📥 Installation

Requirements

  • VORP Core
  • vorp_inventory
  • oxmysql

Database Setup (Items)

INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`) VALUES
('investigation_kit', 'Investigation Kit', 1, 1, 'item_standard', 1),
('empty_evidence_bag', 'Empty Evidence Bag', 20, 1, 'item_standard', 1),
('evidence_bag', 'Evidence Bag', 20, 1, 'item_standard', 1),
('cleaning_kit', 'Cleaning Kit', 5, 1, 'item_standard', 1),
('ink_pad', 'Ink Pad', 1, 1, 'item_standard', 1),
('fingerprint_card', 'Fingerprint Card', 10, 1, 'item_standard', 1);
Images

Make sure you have images for the items in your inventory resource.


🎮 Usage (Step by Step)

1. The Crime Scene

When someone shoots or bleeds, invisible evidence is left on the ground.

2. Investigation

  1. Use the Investigation Kit to toggle Forensic Mode
  2. You'll see markers: Yellow (Shell Casings) and Red (Blood)
  3. Walk to a marker and press [G]
  4. Requirement: You need an Empty Evidence Bag in your inventory
  5. Result: You receive an Evidence Bag with unique ID

3. Lab Analysis

  1. Open your inventory and USE the Evidence Bag
  2. The bag is analyzed and converted into a Forensics Report
  3. Shell Casings: Shows Weapon, Ammo, and Serial Number
    • Fingerprints: If present, the report states "Fingerprint Detected"
  4. Blood: Shows the blood type

4. DNA Comparison

  1. Stand next to a suspect (or yourself)
  2. USE the DNA Sampler
  3. You receive a DNA Sample labeled with the person's name
  4. USE the DNA Sample
  5. The system automatically compares with all Forensics Reports in your inventory

5. Fingerprint Comparison

  1. Use the Ink Pad on a suspect to get their Fingerprint Card
  2. USE the Fingerprint Card
  3. The system scans your Forensics Reports
    • Match: "POSITIVE MATCH!" → Report is updated

⚙️ Configuration

👮 Permissions & Jobs

Define which jobs have access. Format is a table: ['jobname'] = true.

-- Who can use the "Investigation Mode" (Investigation Kit)?
Config.AuthorizedJobs = {
['police'] = true,
['sheriff'] = true,
['marshal'] = true,
['detective'] = true
}

-- Who can take DNA samples from people?
-- Set this to `false` or `{}` to allow EVERYONE.
Config.DnaSamplerJobs = {
['doctor'] = true,
['medic'] = true,
['police'] = true
}

📋 Report Settings

Control what information is displayed in the Forensics Report.

Config.ReportSettings = {
ShowWeaponName = true, -- Shows weapon model name (e.g. "Lancaster Repeater")
ShowAmmoType = true, -- Shows ammo type
ShowSerial = true, -- Shows serial number
ShowVictimName = false, -- Shows victim name on blood stains (false = 'Unknown')
ShowBloodType = true -- Shows blood type
}

⏳ Evidence & Minigames

-- Time in seconds until evidence disappears (900 = 15 Min)
Config.EvidenceLifetime = 900

-- Collection duration in milliseconds
Config.CollectionTime = 5000

🖐️ Fingerprint System

Settings for the fingerprint module.

Config.Fingerprints = {
Enabled = true, -- System on/off
Chance = 25, -- Chance (0-100%) for fingerprints on shell casings
GloveExclusion = true, -- Gloves prevent prints
ConsumeCard = false, -- If true: Card is used up after use
ClothingSystem = "auto", -- "auto", "vorp" or "kd" for glove detection
}

🔧 More Toggles

You can completely disable specific evidence types.

-- Shell Casings
Config.ShellCasings = {
Enabled = true,
VisibleDistance = 10.0
}

-- Blood Stains
Config.BloodCalls = {
Enabled = true,
VisibleDistance = 10.0
}

🆕 Changelog

V1.1 - Fingerprint System

  • New Feature: Fingerprints on shell casings
  • Glove Detection: Supports VORP Character, kd-clothing, jo-libs
  • New Items: ink_pad, fingerprint_card
  • Debug Commands: /checkgloves, /dumpclothing, /checkped

V1.0 - Initial Release

  • Evidence System (Casings, Blood)
  • Investigation Kit
  • Ballistics & DNA Analysis
  • Forensics Reports