For the complete documentation index, see llms.txt. This page is also available as Markdown.

Guide

Explore and fine-tune your settings effortlessly. Customize your script experience according to your preferences

LVS Inventory Guide

Table of Contents

  1. Introduction

  2. Configuration Files

  3. Enhanced ox_inventory Features

  4. Custom Data Files

  5. Setup Instructions

  6. 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)

This is the primary configuration file that controls core inventory behavior.

Holding System Configuration (config/holding.lua)

Configures the prop holding system that displays items as 3D objects when held.

Vehicle Configuration (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

  1. Enable/Disable Features

    • Toggle features in config/config.lua as needed

    • Set Config.Debug = true during setup, then false for production

  2. Server Configuration Add these to your server.cfg:

  3. Customizing Backpacks

    • Edit ox_inventory/data/backpacks.lua

    • Add new backpack entries with desired slots, weight, and restrictions

  4. Setting Up Item Props

    • Configure 3D props in ox_inventory/data/props.lua

    • Define models, positioning, and animations for each item

  5. Special Items Configuration

    • Configure tools in data/tools.lua

    • Configure armor in data/vest.lua

    • Customize display metadata in data/display.lua

Advanced Customization

Creating Custom Backpacks

  1. Add a new entry to the backpacks table:

Custom Item Props

  1. Define a new prop configuration:

Troubleshooting

Common Issues

  1. Backpacks Not Working

    • Ensure Config.BackpackEnabled = true in config.lua

    • Check that backpack entries are properly formatted

    • Verify lvs_bridge is properly installed

  2. Props Not Showing

    • Confirm inventory:heldall is set to true in server.cfg

    • Check that item models are valid and loaded

    • Ensure prop configurations are correctly formatted

  3. 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

  4. Performance Issues

    • Reduce Config.Debug to false in production

    • Limit the number of persistent items with Config.Persistent.maxPlacedForPlayer

    • Consider 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:

  1. Check the console for error messages

  2. Verify all configuration files are properly formatted

  3. Ensure all required dependencies are installed and updated

  4. 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