Guide
Explore and fine-tune your settings effortlessly. Customize your script experience according to your preferences
LVS Inventory Guide
Table of Contents
Introduction
Configuration Files
Enhanced ox_inventory Features
Custom Data Files
Setup Instructions
Troubleshooting
Introduction
LVS Inventory is an enhanced version of ox_inventory that adds additional features and customization options for your FiveM server. This guide will help you understand and configure the various aspects of the system.
Key Features
Enhanced backpack system with configurable sizes and restrictions
Special item slots (tool, armor, backpack, identification, phone, tablet, key, wallet)
Prop holding system with 3D item visualization
Vehicle inventory improvements
Persistent item placement
Body damage integration
Configuration Files
Main Configuration (config/config.lua)
config/config.lua)This is the primary configuration file that controls core inventory behavior.
Holding System Configuration (config/holding.lua)
config/holding.lua)Configures the prop holding system that displays items as 3D objects when held.
Vehicle Configuration (config/vehicle.lua)
config/vehicle.lua)Manages vehicle-specific inventory features.
Enhanced ox_inventory Features
Backpack System
The backpack system allows players to carry additional inventory slots through wearable backpacks.
Configuration Structure
Backpacks are configured in ox_inventory/data/backpacks.lua:
Specialized Backpacks
The system also includes specialized backpacks like medical bags:
Special Slots System
The inventory supports special item types with dedicated UI icons:
Configuration
Server configuration defines available special slots:
Tool Slot
Configured in ox_inventory/data/tools.lua:
Armor Slot
Configured in ox_inventory/data/vest.lua:
Prop Holding System
This system displays items as 3D objects when held by players.
Enabling Item Holding
To enable the prop holding system, ensure inventory:heldall is set to true in your server.cfg. This allows all items to be held, dropped, thrown, and placed.
Individual Item Configuration
Even with inventory:heldall disabled, you can control which specific items can be held by adding a held = true property to their configuration in ox_inventory/data/items.lua:
Item Props Configuration
Item props are configured in ox_inventory/data/props.lua:
Common Bones
28422 - SKEL_R_Finger02 (Right hand)
18905 - SKEL_L_Finger02 (Left hand)
64729 - SPINE1 (Spine)
31086 - HEAD (Head)
57005 - SKEL_R_Forearm (Right forearm)
Display Metadata System
Configured in ox_inventory/data/display.lua:
This system controls how item metadata is displayed to players in the UI.
If you need any specific labels for metadata, you can define them here. This is loaded every time the script starts
Setup Instructions
Basic Configuration
Enable/Disable Features
Toggle features in
config/config.luaas neededSet
Config.Debug = trueduring setup, thenfalsefor production
Server Configuration Add these to your server.cfg:
Customizing Backpacks
Edit
ox_inventory/data/backpacks.luaAdd new backpack entries with desired slots, weight, and restrictions
Setting Up Item Props
Configure 3D props in
ox_inventory/data/props.luaDefine models, positioning, and animations for each item
Special Items Configuration
Configure tools in
data/tools.luaConfigure armor in
data/vest.luaCustomize display metadata in
data/display.lua
Advanced Customization
Creating Custom Backpacks
Add a new entry to the backpacks table:
Custom Item Props
Define a new prop configuration:
Troubleshooting
Common Issues
Backpacks Not Working
Ensure
Config.BackpackEnabled = truein config.luaCheck that backpack entries are properly formatted
Verify lvs_bridge is properly installed
Props Not Showing
Confirm
inventory:heldallis set totruein server.cfgCheck that item models are valid and loaded
Ensure prop configurations are correctly formatted
Special Slots Not Functioning
Verify server configuration includes special slots
Check that items have the correct metadata types
Ensure ox_lib is updated to the required version
Performance Issues
Reduce
Config.Debugtofalsein productionLimit the number of persistent items with
Config.Persistent.maxPlacedForPlayerConsider reducing backpack slot counts if needed
Debug Mode
When enabled (Config.Debug = true), the system will provide additional information in the console to help identify issues. Use this during setup but disable it for production servers.
Getting Help
If you encounter issues not covered in this guide:
Check the console for error messages
Verify all configuration files are properly formatted
Ensure all required dependencies are installed and updated
Check the LVS documentation for additional resources
This guide should help you understand and configure the lvs_inventory system effectively. For more detailed information about specific features, refer to the individual configuration files and test changes in a development environment before deploying to production.
Last updated