XSC_Evidence

XSC_Evidence is a high-performance, immersive forensic evidence system for FiveM servers, designed specifically for law enforcement roleplay. Built on the QBCore framework and leveraging modern resources like ox_target, ox_inventory, and ox_lib, XSC_Evidence brings realistic crime scene investigation to your server while maintaining optimal server performance.

Key Features

Dynamic Evidence System: Evidence props (markers, shell casings, blood, etc.) are only visible when law enforcement uses the magnifying glass tool. This ensures a clean world and eliminates unnecessary resource usage.

On-Demand Prop Spawning: Evidence props are never spawned automatically on weapon fire or crime events. Instead, evidence data is recorded server-side, and props are spawned only when a player requests them via the magnifying glass. Props are visible only to the requesting player and are instantly removed when no longer needed.

Immersive Forensics: Players can collect, analyze, and reveal various evidence types—such as shell casings, blood, and more. Each evidence item stores detailed metadata (e.g., weapon type, time, location, source).

Role-Restricted Access: Only authorized jobs (e.g., police, detectives) can collect evidence or use the magnifying glass, ensuring secure and realistic gameplay.

Performance Optimization: Server-side evidence management ensures no duplicate or lingering props. All spawning and cleanup are handled exclusively by optimized server events. No client-side prop logic, and all evidence is networked per-player for maximum efficiency.

How It Works

XSC_Evidence operates as a modular forensic system, handling all aspects of evidence collection and display on your server. The architecture is designed for both realism and performance:

  • Evidence Recording: When crimes occur (e.g., gunfire, injury), only evidence data is recorded—no props or markers are spawned in the world.

  • Police Tools: When an authorized player activates the magnifying glass or blacklight, the client requests the server to reveal evidence props within range. These props are spawned server-side.

  • Cleanup: When the magnifying glass is deactivated (or on disconnect/resource stop), all props spawned for that player are instantly deleted, ensuring no lingering evidence and optimal server health.

  • Evidence Collection: Players can interact with evidence props to collect and analyze them, triggering server events and updating evidence status.

Ideal Use Cases

XSC_Evidence is perfect for servers that want to introduce:

  • Realistic law enforcement and CSI gameplay, with immersive crime scene investigation.

  • Clean, optimized resources with no unnecessary props or markers cluttering the map.

  • Secure, job-restricted access to forensic tools and evidence collection.

  • Modular, easy-to-configure evidence types and behaviors for custom server needs.

Whether you want to enhance your police RP, add depth to investigations, or offer unique forensic gameplay, XSC_Evidence provides a robust, high-performance foundation.

With XSC_Evidence, you can deliver a professional, immersive, and performance-optimized forensic system for your community—empowering law enforcement with the tools they need to solve crimes and keep your city safe.

Last updated