Keep Bags Lua Script for FiveM: Complete Installation and Configuration Guide

admin

PATRON
Katılım
23 Eki 2022
Mesajlar
14,634
Çözümler
15
Tepkime puanı
19,179
Puanları
113
Yaş
29
Web sitesi
farming-simulator.r10dev.net
keep-bags.jpg

Keep Bags: Expandable Backpack System for FiveM


Keep Bags is a Lua-based backpack and inventory expansion script designed for FiveM servers running ESX, QBCore, or QBox frameworks. With 197 stars on GitHub, this actively maintained resource enables players to carry additional items through realistic bag props, smooth animations, and secure storage mechanics.

Key Features and Capabilities


Keep Bags delivers several core features that enhance server immersion and gameplay:

  • Expanded Inventory Capacity – Players can carry significantly more items and materials by equipping backpacks and bags
  • Realistic Bag Models – Visible props worn on the back or held in hands with proper animations
  • Item Blacklisting – Server administrators can restrict specific items from being stored in bags
  • Smooth Animations – Professional open and close sequences for immersive interactions
  • Password Locking System – Secure bags with custom passwords to prevent theft
  • Exploit Prevention – Built-in protections against "bag in bag" exploits that could break server economy

Essential Dependencies


Before installation, ensure your server has these required resources:

  • QBCore or ESX framework (depending on your server setup)
  • Inventory system: qb-inventory, ox_inventory, or esx_inventory
  • ox_lib (required for ESX servers, optional for QB)
  • keep-harmony resource (prerequisite dependency)
  • Clothing resource: illenium-appearance, qb-clothing, or skinchanger

Installation Process


Step 1: Install keep-harmony

Download and install the keep-harmony resource first, as Keep Bags depends on it. This resource handles framework compatibility and harmonizes inventory interactions across different systems.

Step 2: Configure Inventory Type

Open keep-harmony/config.lua and set your inventory system:

Kod:
Config.inventory = 'qb-inventory'         -- New QB Inventory (v2)
Config.inventory = 'qb-inventory-legacy'  -- Old QB Inventory (v1)
Config.inventory = 'ox_inventory'         -- OX Inventory

Step 3: Add Item Definitions

For ox_inventory users, add item images to ox_inventory/web/images directory, then update ox_inventory/data/items.lua:

Kod:
["backpack1"] = { label = "Backpack 1", weight = 15, stack = false, close = true, description = "A stylish backpack" },
["duffle1"] = { label = "Duffle Bag", weight = 15, stack = false, close = true, description = "A stylish duffle bag" },
["briefcase"] = { label = "Briefcase", weight = 10, stack = false, close = true, description = "Portable case for documents" },
["paramedicbag"] = { label = "Paramedic Bag", weight = 5, stack = false, close = true, description = "Medical bag for emergency care" }

For qb-inventory systems, add items to qb-core/shared/items.lua with the same definitions.

Step 4: Database Setup

Execute the SQL migration file included in the resource to create necessary database tables for bag storage and lock data.

Configuration Best Practices


After installation, configure config.lua to match your server needs:

  • Set appropriate weight limits for different bag types to maintain server economy balance
  • Define blacklisted items that cannot be stored (weapons, quest items, etc.)
  • Adjust animation speeds for client performance
  • Configure password requirements if using the locking system
  • Enable or disable bag props based on server roleplay standards

Common Troubleshooting Tips


Bags not appearing in inventory: Verify items are properly defined in your inventory system and resource names match configuration values exactly.

Animation errors: Ensure ox_lib is running and all dependencies are started before Keep Bags loads.

Weight calculations incorrect: Check that weight values are consistent between item definitions and config settings.



Keep Bags represents a mature, well-tested solution for inventory expansion on FiveM servers. By following these installation and configuration steps, server administrators can provide players with immersive storage mechanics while maintaining security and economy integrity. For the latest updates and community support, visit the official GitHub repository at

🔗 Related Topics

 
Üst
Icy Tower Game Reklam Ver