-
Notifications
You must be signed in to change notification settings - Fork 20
DNA
Player's blood is left on ground if they loose more then 5 hp.
By targetting the blood on the ground, players can remove it if they got hydrogen_peroxide in their inventory.
Permitted players (as defined in config.lua) may collect blood from the ground in case they have a forensic_kit item with them. They receive a collected_blood item that is required to analyse the blood later on.
config.permissions = {
collect = { -- Allowed jobs and their minimum grades required to collect evidence
police = 0,
fib = 0
}
}
If the damaged player is inside a vehicle the blood is left at their current seat in that vehicle.
By targetting while sitting on that car seat, players can remove the blood from it if they got hydrogen_peroxide in their inventory.
Permitted players (as defined in config.lua) may collect blood from the vehicle seat in case they have a forensic_kit item with them. They receive a collected_blood item that is required to analyse the blood later on.
Player's blood is left on every weapon item used to attack them in a melee.
Using hydrogen_peroxide while the weapon is equipped removes the blood from its surface. Police do not need to collect blood from weapons separately. It is sufficient to seize the weapon itself in order to analyse the blood on it.
- Place an
evidence_laptop. - Open the 🧬 DNA Analysis App.
- Have an item in your inventory that holds DNA (
collected_blood, a weapon with blood on it orcollected_saliva). - On the left side of the app, all those items in your inventory and in
evidence boxesare displayed. By selecting an item from the sidebar, the corresponding information will be displayed on the right side. In the upper section, you can see detailed information about the evidence (crime scene, time of collection). You also have the option to add additional notes if needed. In the lower section, you can analyze the item. After a short processing time, the app will either display the identified person from the citizen app or show an error message if no match was found. DNA assignments to a person are managed through the Citizen App. See more here.
If you want to collect a player’s DNA — either to register them in the system or to identify someone who has lost their ID card — you can target the person using your interaction eye while carrying a forensic_kit. The targeted player will then receive an option to either accept or decline providing their DNA. If the person is cuffed or dead, you can take their DNA without their consent.
Note
The implementation and the checks for whether a player is dead or cuffed depend on the framework or police script you are using. You can adjust both checks in the config.lua by modifying them to use your own exports. If something is not working correctly, please make sure to review and adapt these configuration settings accordingly.
Once the DNA is collected (either by consent or by force), you will receive an collected_dna item. This item can be analyzed in the DNA App or used to link the dna to a person in the Citizen App. You can find more information about the linking process here.
- Working with evidences
- Evidence Laptops
- Evidence Boxes
- Fingerprint Scanner
- Implementing other frameworks
- Using the built-in API