Skip to content

luckav-dev/OX-REDESIGN

Repository files navigation

LK Inventory

A premium, fully redesigned inventory system for FiveM built on the ox_inventory backend with a custom Svelte + TypeScript NUI frontend.

Version FiveM Lua Svelte


Preview

Classic Layout



Inventory Overview



Compact Layout



Stash View



Weapon Modification



Crafting System

Features

  • 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

Dependencies

Resource Required
oxmysql
ox_lib
OneSync
Server build 6116+

Installation

  1. Download or clone this repository into your resources folder

    git clone https://github.com/luckav-dev/lk-inventory.git
    
  2. 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
    
  3. Keep the folder named lk_inventory (no need to rename it to ox_inventory) — the resource provides the ox_inventory alias and re-registers all of its exports under that name, so es_extended and any third-party script using exports.ox_inventory keep working. Just make sure you don't have another resource named ox_inventory installed at the same time

  4. Select your framework with the inventory:framework convar in server.cfg. Supported values: esx, qb (QBCore), qbx (Qbox), ox (ox_core), nd (ND_Core). Default is esx:

    setr inventory:framework "qb"
    
  5. Add to your server.cfg, starting the inventory after your framework (the ensure name must match your folder name):

    ensure oxmysql
    ensure ox_lib
    ensure qb-core
    ensure lk_inventory
    
  6. Import the required database tables from ox_inventory if you haven't already


Configuration

Default inventory layout

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


Project Structure

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)

NUI Development

The frontend is built with Svelte + Vite + TypeScript + SCSS.

cd web
pnpm install
pnpm run dev

Open http://localhost:5173 in your browser to see the debug mockup with sample inventory data.


License

This project is licensed under the GPL-3.0 license. See LICENSE for details.

Based on ox_inventory by Overextended.


Made by luckav-dev

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors