๐NOXEN OX INVENTORY
OX_INVENTORY - Custom Enhanced Version
๐ Overview
This is a custom enhanced version of ox_inventory with several advanced features added on top of the official version. This documentation covers all the additional functionality that makes this version unique and powerful for server owners looking for advanced inventory management.
๐ Based on Latest ox_inventory
โ Latest official version - Built on the most recent ox_inventory release
โ Original source untouched - Core ox_inventory files remain completely unchanged
โ Fully open source base - All standard ox_inventory functionality remains accessible
โ Update compatible - Easy integration of future ox_inventory updates
โ Additive approach - New features added alongside, not replacing original code
๐ฏ Key Custom Features Added
1. Player Clone System ๐ญ ๐
Central clone display in inventory UI
Nearby players visualization for item exchange
Interactive 3D player models in the top-right corner
โ ๏ธ PROTECTED: Core system files are secured and non-modifiable
2. Weapon Component System ๐ง ๐
Right-click weapon modification interface
3D weapon preview with camera effects
Component categorization and conflict management
โ ๏ธ PROTECTED: Core system files are secured and non-modifiable
3. Clothing System ๐ โ๏ธ
Dedicated clothing slots (hat, mask, top, pants, shoes, etc.)
Configurable clothing categories
Drop-and-equip functionality
โ CUSTOMIZABLE: Full access to modify and extend functionality
4. Advanced Filtering System ๐ โ๏ธ
Customizable item categories with configurable icons
Dynamic filter buttons in inventory UI
FontAwesome icon support
โ CONFIGURABLE: Complete control via convars and configuration
5. Redesigned UI โจ ๐ฆ
Completely rebuilt frontend with TypeScript/React
Fully configurable interface elements
Modern responsive design
๐ฆ BUILD INCLUDED: Pre-compiled UI ready to use
๐ Access Level & Modification Rights
๐ Protected Systems (FxAP Secured)
Clone System (
clone/
folder) - Core functionality protectedWeapon Components (
component/
folder) - Core functionality protectedThese systems work out-of-the-box but cannot be modified
โ๏ธ Customizable Systems (Full Access)
Clothing System (
modules/clothe/
folder) - Fully modifiable with debug prints includedFilter Configuration (via convars) - Complete customization available
UI Styling (pre-built but configurable via CSS/convars)
๐ฆ Pre-built Systems (Ready to Use)
Frontend UI - Pre-compiled React/TypeScript build included
Configuration System - Full convar control without source access
๐ Detailed Feature Documentation
๐ญ Clone System ๐
Central Player Clone
The inventory displays a 3D clone of your character in the center, providing visual feedback for equipment changes.
Files involved: ๐
clone/clone.lua
- Main clone management (PROTECTED)Configuration: Automatically enabled with inventory
Features:
Real-time character preview
Automatic clothing/equipment updates
Optimized rendering performance
Nearby Players Clone Exchange
When the inventory is open, nearby players (within 10 units) appear as interactive 3D models in the top-right corner.
Files involved: ๐
clone/clone_players.lua
- Nearby players detection and rendering (PROTECTED)
Features:
Automatic detection of nearby players (up to 3)
3D player models positioned in camera view
Drag-and-drop item exchange
Visual feedback with alpha transparency
Distance-based sorting (closest players first)
How it works:
Players within 10 units are detected
3D clones are created and positioned in the upper-right area
Items can be dragged onto these clones to give items
Visual feedback shows interaction states
โ ๏ธ Important: This system is fully protected and works out-of-the-box. No modifications possible but complete functionality included.
๐ง Weapon Component System ๐
Right-Click Weapon Modification
Configuration:
weaponcomponent = GetConvarInt('inventory:weaponcomponent', 1) == 1
Files involved: ๐
component/client.lua
- Client-side weapon component UI (PROTECTED)component/server.lua
- Server-side component management (PROTECTED)
Features:
Right-click weapons to open component menu
3D weapon preview with zoom camera
Component categorization (scopes, suppressors, grips, etc.)
Conflict detection (mutually exclusive components)
Drag-and-drop component installation/removal
Component Categories:
skin
- Weapon skins/tintsflashlight
- Flashlights and lightssuppressor
- Silencers and muzzle attachmentslaser
- Laser sightsscope
- Scopes and sightsgrip
- Foregrips and handlesstock
- Stocks and stabilizersmagazine
- Extended magazines
Usage:
Right-click on any weapon in inventory
3D weapon preview opens with camera focus
Drag components onto weapon to install
Click installed components to remove them
Automatic conflict resolution prevents incompatible combinations
โ ๏ธ Important: This system is fully protected and works out-of-the-box. Configuration via convars only, core files cannot be modified.
๐ Clothing System โ๏ธ
Configurable Clothing Slots
Configuration:
clothingslots = GetConvarInt('inventory:clothingslots', 1) == 1
Files involved: โ๏ธ
modules/clothe/client.lua
- Clothing slot management (FULLY CUSTOMIZABLE)
Available Slots:
Hat - Hats and helmets (Component 0)
Mask - Masks and face coverings (Component 1)
Top - Shirts and jackets (Component 3)
Undershirt - Undershirts (Component 8)
Pants - Pants and shorts (Component 4)
Shoes - Shoes and boots (Component 6)
Glasses - Glasses and eyewear (Props)
Earring - Earrings (Props)
Chain - Necklaces and chains (Props)
Watch - Watches and bracelets (Props)
Customization: โ๏ธ Each clothing slot has configurable callbacks for custom behavior:
callback = function(action, data)
if action == 'click' then
print('Hat slot clicked') -- Debug prints included
-- Handle slot click
elseif action == 'drop' then
print('Item dropped on hat slot:', (data.itemName or 'unknown')) -- Debug prints included
-- Handle item drop on slot
-- data.itemName contains the dropped item
-- TODO: Add event handler for clothing slot usage
-- TriggerEvent('ox_inventory:clothingSlotUsed', 'hat', action, data)
end
end
โ Developer Friendly:
Full source access to clothing system
Debug prints included for easy development
TODO comments showing integration points
Modifiable callbacks for custom functionality
Easy integration with skinchanger/esx_skin
๐ Advanced Filtering System
Configurable Item Categories
Configuration:
-- Enable/disable filters
inventoryfilters = GetConvarInt('inventory:inventoryfilters', 1) == 1
-- Define custom categories
filtercategories = json.decode(GetConvar('inventory:filtercategories', '["food", "weapon", "tool", "other", "money"]'))
-- Define custom icons (FontAwesome classes)
filtercategoryicons = json.decode(GetConvar('inventory:filtercategoryicons',
'{"food": "fas fa-utensils", "weapon": "fas fa-gun", "tool": "fas fa-tools", "other": "fas fa-box-open", "money": "fas fa-dollar-sign"}'))
Features:
Dynamic category buttons in inventory UI
FontAwesome icon support for categories
Configurable category list via convars
Automatic item filtering based on item category
Multi-language support for category names
Adding Custom Categories:
Add category to
filtercategories
arrayDefine icon in
filtercategoryicons
objectSet
category
field in item definitions (data/items.lua)Add translation in locales (optional)
Example:
-- In server.cfg
set inventory:filtercategories '["food", "weapon", "tool", "vehicle", "other", "money"]'
set inventory:filtercategoryicons '{"food": "fas fa-utensils", "weapon": "fas fa-gun", "tool": "fas fa-tools", "vehicle": "fas fa-car", "other": "fas fa-box-open", "money": "fas fa-dollar-sign"}'
โ๏ธ Configuration Guide
Essential Convars
Add these to your server.cfg
to configure the custom features:
# Enable weapon component system (right-click weapons)
set inventory:weaponcomponent 1
# Enable clothing slots
set inventory:clothingslots 1
# Enable inventory filters
set inventory:inventoryfilters 1
# Configure filter categories (JSON array)
set inventory:filtercategories '["food", "weapon", "tool", "medical", "other", "money"]'
# Configure category icons (JSON object with FontAwesome classes)
set inventory:filtercategoryicons '{"food": "fas fa-utensils", "weapon": "fas fa-gun", "tool": "fas fa-tools", "medical": "fas fa-medkit", "other": "fas fa-box-open", "money": "fas fa-dollar-sign"}'
Optional Convars
# Standard ox_inventory convars still apply
set inventory:slots 50
set inventory:weight 30000
set inventory:screenblur 1
set inventory:keys '["F2", "K", "TAB"]'
๐ ๏ธ Installation & Setup
Prerequisites
ox_lib (minimum version 3.27.0)
oxmysql (minimum version 2.7.3)
ESX/QBCore framework support
Installation Steps
Replace your existing ox_inventory with this enhanced version
Ensure the resource starts after ox_lib and oxmysql
Configure convars in server.cfg (see Configuration Guide)
Restart the resource or server
Test all features in-game
File Structure
ox_inventory/
โโโ clone/ # Clone system files
โ โโโ clone.lua # Central player clone
โ โโโ clone_players.lua # Nearby players system
โโโ component/ # Weapon component system
โ โโโ client.lua # Component UI and management
โ โโโ server.lua # Component server logic
โโโ modules/clothe/ # Clothing system
โ โโโ client.lua # Clothing slots management
โโโ web/ # Enhanced UI (React/TypeScript)
โ โโโ src/ # Source files for UI
โโโ ... (standard ox_inventory files)
๐จ UI Customization ๐ฆ
Frontend Framework
React with TypeScript
Tailwind CSS for styling
FontAwesome icons
Fully responsive design
Customizable Elements โ๏ธ
Filter categories and icons (via convars)
Clothing slot labels and behavior (via source access)
Component categories for weapons (protected)
Color schemes and themes (via CSS overrides)
Configuration via convars (no source needed)
Pre-built UI ๐ฆ
Build included - No compilation required
Source not included - Pre-compiled for protection
Configuration via convars - Full customization without source access
CSS overrides supported for styling modifications
โ ๏ธ Note: While the source is not included, the UI is fully functional and customizable through configuration options and CSS overrides.
๐ฆ What's Included in This Package
โ
Ready-to-Use Systems
Complete ox_inventory with all custom features
Pre-compiled UI build (web/build/ folder)
Clone system (protected but fully functional)
Weapon component system (protected but fully functional)
Clothing system (source included with debug prints)
Filter system (fully configurable)
Complete documentation and setup guide
โ๏ธ Source Code Included
Clothing system (
modules/clothe/client.lua
) - Full access with helpful debug printsConfiguration files (
init.lua
) - Enhanced with new convars, original functionality preservedAll standard ox_inventory modules - Complete original source code untouched and accessible
Data files - Items, shops, etc. fully accessible as per original ox_inventory
Original ox_inventory functionality - 100% preserved and open source
๐ Protected Systems
Clone logic (
clone/
folder) - Functional but securedWeapon component logic (
component/
folder) - Functional but securedUI source code - Pre-built only, no TypeScript/React source
๐ซ Not Included
UI source files (TypeScript/React source code)
Raw clone system source (protected via FxAP)
Raw weapon component source (protected via FxAP)
๐ก This approach ensures:
Immediate functionality - Everything works out of the box
Customization where needed - Clothing system fully modifiable
Protection of core innovations - Clone and weapon systems secured
Full configuration control - Complete customization via convars
Original code preserved - All standard ox_inventory remains open source and accessible
Future update compatibility - Easy integration of new ox_inventory versions
๐ค Support & Compatibility
Framework Support
โ ESX Legacy (fully supported)
โ QBCore (fully supported)
โ Standalone mode
ox_inventory Compatibility
๐ Based on latest official version (v2.44.1+)
โ 100% backward compatible with existing ox_inventory setups
โ All original functionality preserved and open source
โ Easy migration from standard ox_inventory
๐ Update strategy: New ox_inventory versions can be integrated by updating core files while preserving custom additions
Known Compatibility
Works with esx_skin and skinchanger
Compatible with weapon shops and crafting systems
Supports custom item categories and metadata
Fully compatible with existing ox_inventory plugins and extensions
Performance
Optimized clone rendering with automatic cleanup
Minimal performance impact on nearby player detection
Efficient component preview system
Smart filtering without lag
No performance degradation compared to standard ox_inventory
๐ Troubleshooting
Common Issues
Clone not showing:
Ensure ox_lib is properly installed
Check for console errors related to clone creation
Verify resource load order
Weapon components not working:
Check
inventory:weaponcomponent
convar is set to 1Ensure weapon has proper metadata structure
Verify component items exist in items.lua
Filters not appearing:
Check
inventory:inventoryfilters
convar is set to 1Verify
filtercategories
JSON syntax is validEnsure item categories match configured filters
Clothing slots not working:
Check
inventory:clothingslots
convar is set to 1Verify clothing items have proper subcategory metadata
๐ Credits & License
Original Work
ox_inventory by Overextended Team - Full credit to the original developers
Base framework and structure - 100% preserved and open source
Core functionality - All original features remain intact and accessible
Our Custom Enhancements (Added On Top)
Clone system implementation - New feature addition
Weapon component management - Enhanced functionality
Advanced filtering system - UI improvements
Clothing slots integration - New feature addition
UI redesign and improvements - Enhanced user experience
๐ค Respect for Original Work
โ No original code modified - We added features alongside, not replacing
โ Full attribution to Overextended team maintained
โ Original license respected - Same terms as official ox_inventory
โ Open source commitment - All standard ox_inventory functionality remains open
โ Community contribution - Designed to enhance, not replace the original
License
This enhanced version maintains the exact same license as the original ox_inventory. We fully respect and credit the Overextended Team for their exceptional work. Our additions are built as enhancements on top of their solid foundation.
๐ Important Note:
Original ox_inventory source code is 100% preserved and fully accessible
Latest official version used as base (regularly updated)
No vendor lock-in - You have complete access to the underlying ox_inventory
Future-proof - Easy to update with new ox_inventory releases
๐ Future Features
Planned Additions
Animation system for clothing changes
Preview system for clothing items
Advanced weapon customization
Player trading interface improvements
Mobile-responsive UI optimization
Community Contributions
We welcome contributions and suggestions for improving this enhanced version. Please maintain code quality and follow the established patterns when contributing.
This documentation covers all custom features added to the standard ox_inventory. For standard ox_inventory documentation, please refer to the official Overextended documentation.
Last updated