[Release] dp-evidencebag - Advanced Evidence Bag System

Overview

dp-evidencebag is a sophisticated evidence bag system for FiveM servers using ox_inventory. This script allows law enforcement officers to collect, store, and transport evidence in a realistic manner, enhancing roleplay during crime scene investigations and evidence processing.

Features

  • Secure Evidence Storage: Each evidence bag has its own unique inventory
  • Unique Identifiers: Every evidence bag gets a unique serial number for tracking
  • Multilingual Support: Fully supports English and Czech languages
  • Seamless Integration: Works perfectly with ox_inventory
  • User-Friendly: Simple interface with progress bars and notifications
  • Realistic Animations: Includes animations for opening evidence bags
  • Customizable: Easily configure slots, weight capacity, and more

Video Preview

Dependencies

  • ox_inventory
  • ox_lib

Installation

  1. Download the latest release
  2. Extract the folder to your resources directory
  3. Add the item to your ox_inventory/data/items.lua:
['evidencebag'] = {
    label = 'Evidence Bag',
    weight = 100,
    stack = false,
    close = true,
    description = 'Used to collect and preserve evidence at crime scenes',
    useable = true,
    client = {
        export = 'dp-evidencebag.openEvidenceBag'
    }
},
  1. Add ensure dp-evidencebag to your server.cfg
  2. Restart your server

Configuration

You can easily configure the script by editing the config.lua file:

Config = {}

-- Item name used for the evidence bag in your inventory
Config.EvidenceBagItem = 'evidencebag' 

-- Storage capacity settings
Config.EvidenceBagStorage = {
    slots = 30,     -- Number of slots in each evidence bag
    weight = 34000  -- Total weight capacity in grams
}

-- Language settings (en or cs)
Config.Language = 'en' 

-- Debug mode for troubleshooting
Config.DebugMode = false

Usage

  1. Add the evidence bag item to players’ inventory through your preferred method (item shops, /give commands, etc.)
  2. Players can use the evidence bag from their inventory
  3. They can store items inside by dragging them into the evidence bag’s inventory
  4. Each evidence bag gets a unique serial number for tracking purposes

Language Support

The script currently supports:

  • English (en)
  • Czech (cs)

You can easily add more languages by adding new entries to the Config.Locales table.

Commands

None required - all functionality is accessed through the inventory interface.

Credits

  • Original concept: Dzejkop
  • Development: DDev

Support

For support, join our Discord: Discord Link

6 Likes

Nice, looks good

1 Like

really nice work

1 Like

this script is bugged for me, i put the paperbag in the ox_inventory items, but the config slot and weight it not work by the script, but if i rename the config and the items inventory in
“evidencebag” everything works perfectly, but i can insert a evidencebag into another evidencebag

I can fix that, it’s no problem.

There will be an update today that will fix those problems.

1 Like

Don’t you have another paper bag defined in items.lua?

oh yeah you’re right, there is another item called “paperbag” but it’s a default item of the ox_inventory, that’s why it didn’t work with that name

1 Like