[FREE] [QBCore] New Evidence Script [EDIT FROM POLICEJOB]

This Lua script is a comprehensive tool designed for crime scene analysis, specifically tailored as an enhancement to the qb-policejob script. It is dedicated to providing law enforcement personnel with advanced capabilities to investigate incidents thoroughly. This script is crafted entirely in Lua and focuses on five key forensic elements: bullet casings, bullets, fingerprints, blood (DNA), and vehicle fragments.

1. Bullet Casings:
zRffjtV

  • The script includes a specialized module to identify and analyze bullet casings found at the crime scene. It allows law enforcement to trace the type of firearm used and potentially link it to other incidents.

2. Bullets:
F4AEqba

  • Another feature enables the identification and cataloging of bullets, aiding in establishing connections between different crime scenes or suspects.

3. Fingerprints:
WZcmy9k

  • The script incorporates advanced fingerprint analysis, utilizing cutting-edge algorithms to match and identify fingerprints found at the scene. This facilitates the swift identification of potential suspects.

4. Blood (DNA):
CfM5jvh

  • A robust DNA analysis module allows investigators to identify blood samples at the crime scene. Through DNA profiling, law enforcement can link suspects or victims to the incident.

5. Vehicle Fragments:
zy2EaL5

  • The script offers a specialized functionality for analyzing vehicle fragments. This helps in reconstructing vehicular incidents, identifying involved vehicles, and potentially tracking down suspects.

DrawLine Function for Shooter Position:

  • Leveraging the DrawLine function, this script provides a unique capability to determine the exact position of the shooter. By visualizing trajectories and impact points, investigators can reconstruct the shooting incident in detail. ( Green DrawLine when the shooter was a Cop and Red DrawLine when the shooter wasnt a Cop )

NOTE:

  • This script is an edited version of the qb-policejob framework, integrating additional functionalities for a more in-depth crime scene analysis. It empowers law enforcement with advanced tools to solve cases efficiently and effectively.
  • The high resmon is only client sided ( This means its not that big of a deal ). Its high because im using DrawMarkers/DrawLine which need to be looped with a 0-5ms wait time.

download now: GitHub - LeSiiN/lsn-evidence: A New Free Evidence Script for QBCore
youtube Watch this: https://www.youtube.com/watch?v=ZfloeoEBvhQ

WARNING:

14 Likes

Very nice script and the detail of the drawlines is curious.

Iā€™m going to drop an idea to see what you think, using targets or getting very close to the trajectory of a bullet, with some item like a laser pointer you could try to calculate where the bullet comes from, I think that this way you donā€™t have to be showing all the time the drawlines and it would be something more optimal.

1 Like

i do like that idea alot. going to do that!

2 Likes

Glad to hear it, good luck! :blush:

The Functions are ready, im going to make last tests tomorrow afternoon, if everything is working i will be updating the script :slight_smile:

4 Likes

loved seeing the updates and progress of this! Such a great itdea. Love your work

1 Like

Thank you very much!

1 Like

Update is out, have fun, let me know if there are any bugs :slight_smile:

Okay i will check soon, and if i found something i send you a message. :blush:

nice contribution to the community. +1

P.S.
That resmon thoooooo lol

Like i already said in the description, there is no other way then doing it like this. If so, tell me

To make sure I am following my intuition properly hereā€¦

Would it be possible to integrate this with AXFW Inventory for qb-core? It rewrites major parts of the app.js so the instructions on your github donā€™t line up.

Looking through the code, I think it could be pretty easy to add support for it. I am currently working to see if I can get that functional.

Hi, i just checked they script, it looks like they just using the Tooltip for the quality of each item, they do not support stuff like the infos(serial number of weapons for example) of each item.

But if u found a way, let me know and i will implement it into the readme

I might experiment with it at some point. Right now > I actually found some issues, and I am not sure where to turn exactly.

I have LSN-Evidence, and Hi-Dev QB Policejob. For some reason, I have noticed when I go to research evidence I collect (via the microscope) I get an error from hi-dev qp-policejob saying there was a script error where it tried to index a nil value. (field ā€˜metadataā€™). On line 66 of evidence.lua.

Looking at that line, it is passing metadata, donā€™t see anything wrong with the code. But for some reason, that metadata is nil. I have experimented with a few different options, but couldnā€™t seem to figure it outā€¦ So I started working from the ground up.

I made sure both your script and policejob were completely up to date, configured correctly following the steps on both your github, and hi-devā€™sā€¦ What I found was rather interestingā€¦

If a player fires at something, drops casings, etc. When I user the laserpointer, I notice that their lines appear green. I can see the evidence using the flashlight, but after about 30-40 seconds, their lines and evidence vanish. I can no longer see them.

So I am wondering if whatever could be causing that problem, may be what is causing the script error I am having with policejob, as technically, that evidence no longer exists, thereforeā€¦ there would be no metadata to pass.

Iā€™d love to find a solution here if you have any suggestions.

Thanks in advance.

Thanks for ur responds, sadly i never had any of these problems. So i dont even know where to start debugging that.

I donā€™t get it myself.

All I have done is install Hi-dev Policejob (the 1.3.9 release through tebex, your latest release, and QB-Inventory (since axfw doesnā€™t currently work.)

Replaced the evidence.lua and main.lua for Hi-dev using the ones you provided. Commented out the AMMO Labels as instructed. Setup config.lua for both plugins. Etc.

After receiving the error, there is also a follow up error saying ā€œQB-Core: SCRIPT ERROR object is not a string.ā€

It acts like the metadata for the street and label arenā€™t there.

Id be perfectly fine zipping up my files and sending them to you if youā€™d like to see. Or I can get on Discord with you and share what is happening. Either way, I donā€™t plan to give up on making this work. Lol

Yeah, add me on discord, its just lesiin. We will try to get it to work. We got different time zones, so its hard, but overtime weā€™ll get it to work

if you use lj-inventory } else if (itemData.name == ā€œfilled_evidence_bagā€) {
if (itemData.info.type == ā€œcasingā€) {
return <p><strong>Evidence material: </strong><span> ${itemData.info.label}</span></p> <p><strong>Type number: </strong><span> ${itemData.info.ammotype}</span></p> <p><strong>Caliber: </strong><span> ${itemData.info.ammolabel}</span></p> <p><strong>Serial Number: </strong><span> ${itemData.info.serie}</span></p> <p><strong>Crime scene: </strong><span> ${itemData.info.street}</span></p><br /><p> ${itemData.description}</p>;

    } else if (itemData.info.type == "bullet") {
        return `<p><strong>Evidence material: </strong><span>
        ${itemData.info.label}</span></p>
            <p><strong>Type number: </strong><span>
            ${itemData.info.ammotype}</span></p>
            <p><strong>Bullet: </strong><span>
            ${itemData.info.ammolabel}</span></p>
            <p><strong>Serial Number: </strong><span>
            ${itemData.info.serie}</span></p>
            <p><strong>Crime scene: </strong><span>
            ${itemData.info.street}</span></p><br /><p>
            ${itemData.description}</p>`;
   
    } else if (itemData.info.type == "vehiclefragement") {
        return `<p><strong>Evidence material: </strong><span>
        ${itemData.info.label}</span></p>
            <p><strong>Type number: </strong><span>
            ${itemData.info.ammotype}</span></p>
            <p><strong>Serial Number: </strong><span>
            ${itemData.info.serie}</span></p>
            <p><strong>Color: </strong><span>
            ${itemData.info.rgb}</span></p>
            <p><strong>Crime scene: </strong><span>
            ${itemData.info.street}</span></p><br /><p>
            ${itemData.description}</p>`;
    
    } else if (itemData.info.type == "blood") {
        return `<p><strong>Evidence material: </strong><span>
            ${itemData.info.label}</span></p>
            <p><strong>Blood type: </strong><span>
            ${itemData.info.bloodtype}</span></p>
            <p><strong>DNA Code: </strong><span>
            ${itemData.info.dnalabel}</span></p>
            <p><strong>Crime scene: </strong><span>
            ${itemData.info.street}</span></p><br /><p>
            ${itemData.description}</p>`
        }
    else if (itemData.info.type == "fingerprint") {
        return `<p><strong>Evidence material: </strong><span>
            ${itemData.info.label}
            </span></p><p><strong>Fingerprint: </strong><span>
            ${itemData.info.fingerprint}</span></p>
            <p><strong>Crime Scene: </strong><span>
            ${itemData.info.street}</span></p><br /><p>
            ${itemData.description}</p>`
        }
    else if (itemData.info.type == "dna") {
        return `<p><strong>Evidence material: </strong><span>
        ${itemData.info.label}
        </span></p><p><strong>DNA Code: </strong><span>
        ${itemData.info.dnalabel}
        </span></p><br /><p>
        ${itemData.description}</p>`
        }

line 559 replase

anny help

You are correct about AXFM Inventory using Tooltips and not supporting the serial numbers. There is a way for it to support serial numbers which is just some code you have to add into the app.js. So it would be cool if you could make this script work with that inventory! If you need a copy of the code just add me on Discord which is my username here.