> For the complete documentation index, see [llms.txt](https://bmjmodding.gitbook.io/fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bmjmodding.gitbook.io/fr/fivem-scripts/forensic-analysic-system/fonctionnement.md).

# Fonctionnement

The **Forensic Analysic System** script is a comprehensive criminal investigation system for FiveM that allows investigators to collect, analyze and exploit physical evidence left at crime scenes.

***

### 🎯 Main Features

#### Types of collectible evidence:

* **🩸 Blood stains** - Left by injured players
* **🔫 Bullet impacts** - Marks on hit surfaces
* **💥 Shell casings** - Ejected cartridges from gunfire
* **👟 Vehicle footprints** - Tire tracks left by wheels
* **📦 Abandoned magazines** - Dropped magazines during reloading

***

### 🛠️ Required Equipment

#### 🧤 Surgical gloves (`surgical_gloves`)

* **Mandatory** to collect evidence without contamination
* **3 uses maximum** before automatic destruction
* **Visual variations** according to character gender
* **Controls**: Arrow keys to change style, E to remove

#### 🧪 Sample tubes (`evidence_empty`)

* **Sterile containers** to store evidence
* **One tube per evidence** collected
* **Automatic transformation** into `evidence` during collection

***

### 📋 Complete Investigation Process

#### **Step 1: Preparation**

1. Obtain **surgical gloves** and **empty tubes**
2. Go to the **crime scene**
3. **Equip gloves** from inventory

#### **Step 2: Evidence Detection**

1. The system **automatically scans** the area around the player
2. Available evidence displays with **visual markers**
3. **Approach** the detected evidence

#### **Step 3: Collection**

1. **Automatic verification**:
   * Presence of surgical gloves ✅
   * Availability of empty tube ✅
2. **Press E** to collect
3. Empty tube becomes an **evidence sample** with metadata

#### **Step 4: Laboratory Analysis**

1. Go to the **laboratory** (coordinates: 3539.58, 3642.92, 28.12)
2. Interact with the **scientist NPC**
3. **Drag and drop** evidence into web interface
4. Wait for **analysis completion** (configurable delay)

#### **Step 5: Results**

Analysis reveals:

* **🆔 Suspect identity** (if without gloves)
* **📊 Complete personal data**
* **🔍 Technical details** (weapon, ammunition, location)
* **⏰ Precise timestamp** of incident

***

### ⚙️ Technical Mechanics

#### **Fingerprint System**

* **Normal gloves (ID 100)**: Prevent leaving fingerprints
* **Without gloves**: Fingerprints automatically added to evidence
* **Surgical gloves**: Allow collection without contamination

#### **Evidence Persistence**

* **Blood stains**: 5 seconds (rapid degradation)
* **Vehicle footprints**: 10 seconds
* **Impacts/casings/magazines**: 5 seconds each
* **Automatic disappearance** after expiration

#### **Magazine Detection**

* **Real-time monitoring** of nearby objects
* **Weapon/magazine mapping** for exact correspondence
* **Automatic creation** during weapon reloading
