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
- Download the latest release
- Extract the folder to your resources directory
- Add the item to your ox_inventory/data/items.lua:
['paperbag'] = {
label = 'Evidence Bag',
weight = 100,
stack = true,
close = true,
description = 'Used to collect and preserve evidence',
image = 'paperbag.png', -- Make sure to add this image to your inventory images
useable = true,
client = {
export = 'dp-evidencebag.openEvidenceBag'
}
},
- Add ensure dp-evidencebag to your server.cfg
- 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 = 'paperbag'
-- 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
- Add the evidence bag item to players’ inventory through your preferred method (item shops, /give commands, etc.)
- Players can use the evidence bag from their inventory
- They can store items inside by dragging them into the evidence bag’s inventory
- Each evidence bag gets a unique serial number for tracking purposes
Language Support
The script currently supports:- English (en)
- Czech (cs)