A premium, fully redesigned inventory system for FiveM built on the ox_inventory backend with a custom Svelte + TypeScript NUI frontend.
- Dual Layout System — Classic side-by-side layout and a compact stacked-right layout, switchable in-game
- Custom Svelte NUI — Fully rewritten frontend using Svelte, TypeScript, and SCSS with TT Lakes typography
- Drag & Drop — Smooth item dragging with a scaled preview, quantity splitting with Shift, and slot swapping
- Hotbar System — 5-slot quick access bar with in-game HUD overlay and hotkey badges
- Weight System — Visual weight bar with real-time tracking per inventory
- Context Menu — Right-click actions: Use, Give, Destroy, Favorite, and Send with quantity selector
- Clothing Toggle Panel — 12 clothing category toggles (hat, mask, glasses, ears, neck, torso, vest, bag, pants, shoes, watch, bracelets)
- Weapon Modification — Tactical weapon mod overlay with socket-based attachment management
- Crafting System — Built-in crafting panel with recipe selection, material tracking, and progress bar
- Stash PIN Lock — Numeric keypad PIN overlay for secured stashes with error feedback
- Shop System — NPC shops with price tags, cash/bank display, and purchase validation
- Accent Color Customization — In-game color picker with presets and custom hex input
- Notifications — Slide-in item notifications with icons for add/remove events
- Tooltip System — Hover tooltips with item metadata, durability, serial numbers, and ammo info
- Responsive Scaling — Automatic aspect-ratio and height-based scaling for any resolution
- 30 Languages — Full localization support
| Resource | Required |
|---|---|
| oxmysql | ✅ |
| ox_lib | ✅ |
| OneSync | ✅ |
| Server build 6116+ | ✅ |
-
Download or clone this repository into your
resourcesfoldergit clone https://github.com/luckav-dev/lk-inventory.git -
The NUI is pre-built — no additional build step is needed. If you want to modify the frontend:
cd lk-inventory/web pnpm install pnpm run build -
Keep the folder named
lk_inventory(no need to rename it toox_inventory) — the resource provides theox_inventoryalias and re-registers all of its exports under that name, soes_extendedand any third-party script usingexports.ox_inventorykeep working. Just make sure you don't have another resource namedox_inventoryinstalled at the same time -
Select your framework with the
inventory:frameworkconvar inserver.cfg. Supported values:esx,qb(QBCore),qbx(Qbox),ox(ox_core),nd(ND_Core). Default isesx:setr inventory:framework "qb" -
Add to your
server.cfg, starting the inventory after your framework (theensurename must match your folder name):ensure oxmysql ensure ox_lib ensure qb-core ensure lk_inventory -
Import the required database tables from
ox_inventoryif you haven't already
Set the server-wide default layout that every player sees the first time they open the inventory. Add this convar to your server.cfg:
# "classic" -> side-by-side layout (default)
# "compact" -> stacked-right layout
setr inventory:defaultlayout "compact"
Players can still override the default for themselves with the /inventoryconfig command (their personal choice is saved locally and takes priority over the server default).
lk-inventory/
├── client.lua # Client-side logic
├── server.lua # Server-side logic
├── init.lua # Resource initialization
├── fxmanifest.lua # Resource manifest
├── data/ # Items, weapons, shops, stashes, crafting configs
├── locales/ # 30 language files
├── modules/ # Modular systems
│ ├── bridge/ # Framework bridge (ESX/QBCore)
│ ├── clothing/ # Clothing toggle system
│ ├── crafting/ # Crafting logic
│ ├── inventory/ # Core inventory logic
│ ├── items/ # Item definitions & handlers
│ ├── shops/ # Shop system
│ ├── weapon/ # Weapon handling
│ └── ...
└── web/ # Svelte NUI frontend
├── src/
│ ├── components/ # Svelte components
│ ├── stores/ # State management
│ ├── styles/ # SCSS stylesheets
│ └── lib/ # Utilities
└── build/ # Production build (ready to use)
The frontend is built with Svelte + Vite + TypeScript + SCSS.
cd web
pnpm install
pnpm run devOpen http://localhost:5173 in your browser to see the debug mockup with sample inventory data.
This project is licensed under the GPL-3.0 license. See LICENSE for details.
Based on ox_inventory by Overextended.





