Evidence Bag System

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:

  1. Download dp-evidencebag from the GitHub link above.
  2. Put the dp-evidencebag folder into your server’s resources directory.
  3. 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' } },
  4. Make sure you have an image named paperbag.png (or whatever you use) in your ox_inventory/web/images folder.
  5. Add ensure dp-evidencebag to your server.cfg.
  6. 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:

  1. Get the paperbag item (or whatever you named it) – maybe from the police station armoury.
  2. Use the item from your inventory (‘F5’ or your inventory key).
  3. The evidence bag inventory opens up.
  4. Drag items found at the crime scene from your personal inventory into the evidence bag’s inventory window.
  5. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *