Bablo ResourcesDocs

Installation

Welcome to the Bablo Evidence installation guide! This guide will walk you through the complete installation process for our asset. By following each step carefully, you’ll ensure a smooth and hassle-free setup, provided that all instructions are followed thoroughly.

Download asset

To find the asset, you must have made the purchase using your own cfx account. Otherwise, you can use the transfer system to move the asset to a different cfx account.

After purchasing from our official website, the asset will be delivered directly to your CFX Portal. From your panel, you can download the asset and proceed with the installation using the provided documentation.

The download contains the bablo-evidence resource and the forensic laboratory MLO in laboratory.zip. Place bablo-evidence in your server’s resources folder and extract laboratory.zip next to it as laboratory.

Setup CFG

The evidence resource reads your framework, inventory and target when it starts. Start them first, and start the laboratory map before bablo-evidence, otherwise the lab stations and lockers will not load.

When setting up your server environment, it is crucial to ensure that your core scripts are initialized before any additional resources. Specifically, the core resources such as es_extended or qb-core or qbx_core should be started first before you introduce other elements like the bablo-evidence resource. This order is essential for maintaining a stable and functional environment.

LUA
-- First we will start the cores, never below
ensure es_extended or qb-core or qbx_core
ensure oxmysql
ensure ox_lib
ensure ox_target -- or qb-target
ensure ox_inventory
 
-- The included forensic laboratory MLO
ensure laboratory
 
-- Run bablo-evidence here
ensure bablo-evidence

OneSync must be enabled on your server.

Database

Import the SQL files from the sql folder into your database:

  • evidence.sql
  • booking.sql
  • case_files.sql
  • laboratory.sql
  • lockers.sql
  • photography.sql
  • boards.sql
  • trajectory_field.sql
  • lidar.sql

one_time_cleanup.sql and one_time_evidence_cleanup.sql are only for servers upgrading from an older version. They close stale scenes and remove old evidence records, so do not run them on a fresh install.

Basic Configuration

Basic Framework Configuration

Open shared/config/config.lua and set Config.Framework to the framework your server runs: 'qb' for QBCore, 'qbox' for Qbox or 'esx' for ESX.

LUA
---@type 'qb'|'qbox'|'qbx'|'esx'|'standalone'
Config.Framework = 'qbox'

Config.TargetProvider is set to 'auto' and picks ox_target or qb-target, whichever is started. You can force one with 'ox_target' or 'qb-target'.

Job Access

Add your police job names to Permissions.AllowedJobs in shared/config/permissions.lua and map them to a department in Permissions.JobMap. See Permissions for the grade per action.

Administrator Permissions

The Lab Creator, the workstation screen setup and the test tools use ACE permissions. Add them to your server.cfg:

CFG
add_ace group.admin evidence.lab_setup allow
add_ace group.admin evidence.lab_test allow
add_ace group.admin evidence.screens allow
add_ace group.admin command.equipmentcase allow

Setting up Items

To ensure the script functions correctly, follow this simple guide to add the necessary items.

To assist you in managing inventories, we’ve outlined the steps to create items for the supported inventories below. If you need guidance on creating items for other supported inventories not listed, please create a support ticket.

Navigate to ox_inventory/data/items.lua and add the following items:

LUA
-- Field tools
['Forensics_tablet'] = {
    label = 'Forensics Tablet', weight = 800, stack = false, close = true, consume = 0,
    description = 'Portable forensic analysis tablet for field investigations.',
    client = { image = 'forensics_tablet.png' },
},
['gsr_unit'] = {
    label = 'GSR Test Unit', weight = 1200, stack = false, close = true, consume = 0,
    description = 'Swabs a suspect\'s hands for gunshot residue.',
},
['forensic_camera'] = {
    label = 'Forensic Camera', weight = 850, stack = false, close = true, consume = 0,
    description = 'Scene photography, macro detail and measurement scale',
    client = { export = 'bablo-evidence.useForensicCamera', image = 'forensic_camera.svg' },
},
['evidence_photo'] = {
    label = 'Evidence Photograph', weight = 10, stack = false, close = true, consume = 0,
    description = 'Archived forensic photograph. Open with your forensic tablet.',
    client = { export = 'bablo-evidence.useEvidencePhoto', image = 'evidence_photo.svg' },
},
['lidar_data_drive'] = {
    label = 'LiDAR Scene Drive', weight = 100, stack = false, close = true, consume = 0,
    description = 'Recorded forensic point-cloud scene',
    client = { export = 'bablo-evidence.useLidarDrive' },
},
['evidence_report'] = {
    label = 'Evidence Report', weight = 50, stack = false, close = true, consume = 0,
    description = 'A printed forensic evidence report from the San Andreas Police Department.',
},
['luminol_spray'] = {
    label = 'Luminol Spray', weight = 350, stack = true, close = true, consume = 0,
    description = 'Presumptive field reagent for revealing recoverable hidden blood traces.',
    client = { event = 'evidence:client:useLuminolSpray', image = 'luminol_spray.png' },
},
['evidence_bleach'] = {
    label = 'Evidence Cleaning Solution', weight = 500, stack = true, close = true, consume = 0,
    description = 'Cleans visible biological traces; recovery may still be possible.',
    client = { event = 'evidence:client:useEvidenceBleach', image = 'evidence_bleach.png' },
},
['evidence_cleaning_rag'] = {
    label = 'Cleaning Rag', weight = 50, stack = true, close = true, consume = 0,
    description = 'Wipes supported surfaces and may leave secondary fibers.',
    client = { event = 'evidence:client:useEvidenceCleaningRag', image = 'evidence_cleaning_rag.png' },
},
 
-- Booking kit and known references
['forensic_booking_kit'] = {
    label = 'Forensic Booking Kit', weight = 1500, stack = false, close = true, consume = 0,
    description = 'Collect known fingerprints, DNA, shoe and clothing references with recorded consent.',
    client = { event = 'evidence:booking:useKit', image = 'forensic_booking_kit.png' },
},
['reference_print_card'] = {
    label = 'Known Fingerprint Card', weight = 30, stack = false, close = true, consume = 0,
    description = 'Sealed ten-print reference card linked to its booking record.',
    client = { event = 'evidence:booking:inspectReference', image = 'reference_print_card.png' },
},
['reference_dna_swab'] = {
    label = 'Known DNA Reference', weight = 40, stack = false, close = true, consume = 0,
    description = 'Sealed buccal reference sample linked to its booking record.',
    client = { event = 'evidence:booking:inspectReference', image = 'reference_dna_swab.png' },
},
['reference_shoe_cast'] = {
    label = 'Known Footwear Impression', weight = 250, stack = false, close = true, consume = 0,
    description = 'Reference impression of the footwear worn during sampling.',
    client = { event = 'evidence:booking:inspectReference', image = 'reference_shoe_cast.png' },
},
['reference_fiber_sample'] = {
    label = 'Known Clothing Fibers', weight = 25, stack = false, close = true, consume = 0,
    description = 'Sealed reference fibers from the clothing sampled during booking.',
    client = { event = 'evidence:booking:inspectReference', image = 'reference_fiber_sample.png' },
},
 
-- Collected evidence samples
['evidence_blood']  = { label = 'Blood Sample', weight = 150, stack = false, close = true, consume = 0, description = 'Sealed blood evidence for DNA examination.', client = { image = 'blood_bags.png' } },
['evidence_dna']    = { label = 'DNA Trace', weight = 100, stack = false, close = true, consume = 0, description = 'Sealed DNA trace for profile analysis.', client = { image = 'evidence_report.png' } },
['evidence_casing'] = { label = 'Spent Casing', weight = 50, stack = false, close = true, consume = 0, description = 'Recovered casing for ammunition identification and comparison.', client = { image = 'bullet_casing.png' } },
['evidence_impact'] = { label = 'Bullet Fragment', weight = 80, stack = false, close = true, consume = 0, description = 'Recovered projectile for ballistics examination.', client = { image = 'bullet_impact.png' } },
['evidence_print']  = { label = 'Fingerprint Lift', weight = 100, stack = false, close = true, consume = 0, description = 'Visible or latent print for ridge comparison.', client = { image = 'fingerprints.png' } },
['evidence_tire']   = { label = 'Tyre Impression', weight = 200, stack = false, close = true, consume = 0, description = 'Recovered tyre pattern for impression examination.', client = { image = 'tire_impressions.png' } },
['evidence_shoe']   = { label = 'Shoe Impression', weight = 150, stack = false, close = true, consume = 0, description = 'Recovered sole pattern for impression examination.', client = { image = 'evidence_report.png' } },
['evidence_fiber']  = { label = 'Fibre Evidence', weight = 50, stack = false, close = true, consume = 0, description = 'Sealed fibres for trace microscopy.', client = { image = 'evidence_report.png' } },
['evidence_glass']  = { label = 'Glass Evidence', weight = 100, stack = false, close = true, consume = 0, description = 'Recovered glass fragments for trace microscopy.', client = { image = 'evidence_report.png' } },
['evidence_paint']  = { label = 'Paint Evidence', weight = 50, stack = false, close = true, consume = 0, description = 'Sealed paint transfer for layer examination.', client = { image = 'evidence_report.png' } },
['evidence_gsr']    = { label = 'Gunshot Residue', weight = 100, stack = false, close = true, consume = 0, description = 'Collection stub for residue examination.', client = { image = 'gsr_unit.png' } },
['evidence_burn']   = { label = 'Burn Residue', weight = 100, stack = false, close = true, consume = 0, description = 'Recovered burn residue for chemical examination.', client = { image = 'evidence_report.png' } },
['evidence_drug']   = { label = 'Drug Trace', weight = 100, stack = false, close = true, consume = 0, description = 'Sealed substance trace for toxicology examination.', client = { image = 'drug_pack.png' } },
 
-- Equipment case and scene props
['evidence_equipment_case']              = { label = 'Equipment Suitcase', weight = 3200, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_lidar_scanner']          = { label = 'LiDAR Scene Scanner', weight = 6000, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_trajectory_rod']         = { label = 'Trajectory Rod', weight = 1400, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_board']         = { label = 'Evidence Photo Board', weight = 11000, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_00']     = { label = 'Evidence Marker 01', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_01']     = { label = 'Evidence Marker 02', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_02']     = { label = 'Evidence Marker 03', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_03']     = { label = 'Evidence Marker 04', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_04']     = { label = 'Evidence Marker 05', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_05']     = { label = 'Evidence Marker 06', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_06']     = { label = 'Evidence Marker 07', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_07']     = { label = 'Evidence Marker 08', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_08']     = { label = 'Evidence Marker 09', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_evidence_marker_09']     = { label = 'Evidence Marker 10', weight = 180, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_police_tape_barrier_01'] = { label = 'Police Barrier 01', weight = 2200, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_police_tape_barrier_02'] = { label = 'Police Barrier 02', weight = 2200, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_police_tape_barrier_03'] = { label = 'Police Barrier 03', weight = 2200, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },
['evidence_prop_police_tape_barrier_04'] = { label = 'Police Barrier 04', weight = 2200, stack = false, close = true, consume = 0, client = { event = 'evidence:client:useEquipment' } },

The tablet item must match UIConfig.TabletItem in shared/config/ui.lua, which is Forensics_tablet by default. If you renamed the resource folder, change bablo-evidence in the three export lines to your folder name. You can find the item images in the items/inv_img folder. Copy these images to ox_inventory/web/images.

Equipment suitcase

The equipment suitcase holds the LiDAR scanner, two trajectory rods, four police barriers and ten evidence markers. Give one to an officer with the restricted command /equipmentcase [player id], or from your own resource with the GiveEquipmentCase export. See Equipment & Props.

Laboratory MLO

The laboratory resource is the forensic lab interior the stations and evidence lockers are built for. Start it before bablo-evidence and reconnect after installing or updating it. To build a lab in your own police department instead, use the in-game Lab Creator.