Level Up Your Police RP: dp-evidencebag Script for FiveM
Want to make crime scene investigations on your FiveM server feel more real? Check out dp-evidencebag by Dzejkop! This awesome script adds proper evidence bags for your police officers, working perfectly with the popular ox_inventory. Stop just picking things up – bag ’em and tag ’em like real LEOs!
Why You Need This for Your GTA RP Server:
- Real Evidence Handling: Officers can collect items at a scene and store them securely in special bags.
- Unique Bag Inventories: Each evidence bag acts like its own container, keeping items separate and organized. No more mixing evidence!
- Track Everything: Every bag gets a unique serial number. Perfect for realistic tracking from the crime scene to the evidence locker or lab.
- Made for ox_inventory: Built to work smoothly with
ox_inventory, a staple on many servers. - RP Focused: Includes animations for opening bags and a clean interface that doesn’t break immersion.
- Easy Setup: Simple configuration and installation.
- Multiple Languages: Ready for English and Czech servers, and you can easily add more.
See it in Action:
Key Features:
- Secure, separate inventory for each bag.
- Unique serial number for every evidence bag created.
- Works great with
ox_inventory. - Simple UI with progress bars and notifications.
- Animations for opening bags.
- Easy config for slots, weight, item name, and language.
- Supports English (
en) and Czech (cs) out of the box.
What You Need:
- ox_inventory: This script is built for it.
- ox_lib: A common library dependency.
Quick Install Guide:
- Download
dp-evidencebagfrom the GitHub link above. - Put the
dp-evidencebagfolder into your server’sresourcesdirectory. - Add this item to your
ox_inventory/data/items.lua:lua ['paperbag'] = { -- You can change 'paperbag' if you want label = 'Evidence Bag', weight = 100, stack = true, -- Can players carry multiple empty bags? close = true, description = 'Used to collect and preserve evidence.', -- Make sure you have a paperbag.png in your inventory images folder! image = 'paperbag.png', useable = true, client = { export = 'dp-evidencebag.openEvidenceBag' } }, - Make sure you have an image named
paperbag.png(or whatever you use) in yourox_inventory/web/imagesfolder. - Add
ensure dp-evidencebagto yourserver.cfg. - Restart your FiveM server.
Easy Configuration (config.lua):
Config = {}
-- Make sure this matches the item name in ox_inventory
Config.EvidenceBagItem = 'paperbag'
-- How much can each bag hold?
Config.EvidenceBagStorage = {
slots = 30, -- Number of different item slots
weight = 34000 -- Max weight in grams (like ox_inventory uses)
}
-- Set your language ('en' or 'cs', or add your own)
Config.Language = 'en'
-- Set to true if you need to debug issues
Config.DebugMode = false How LEOs Use It in RP:
- Get the
paperbagitem (or whatever you named it) – maybe from the police station armoury. - Use the item from your inventory (‘F5’ or your inventory key).
- The evidence bag inventory opens up.
- Drag items found at the crime scene from your personal inventory into the evidence bag’s inventory window.
- Note the unique serial number on the bag for your reports!
Ready to add more depth to your police investigations? Grab dp-evidencebag and enhance your server’s roleplay today!