Draft
Add modern NUI inventory UI with red/blue glassmorphism theme#1
Conversation
Co-authored-by: KingTyl3r <17015281+KingTyl3r@users.noreply.github.com>
…ance fallback Co-authored-by: KingTyl3r <17015281+KingTyl3r@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add modern NUI for inventory UI integration
Add modern NUI inventory UI with red/blue glassmorphism theme
Nov 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional modern NUI inventory interface with glassmorphism styling, body silhouette health display, and drag-drop support while preserving existing ox_inventory backend compatibility.
New Files
web/ui.html- NUI entrypoint with equipment slots, 8x3 inventory grid, body silhouette, and conditional backpack panelweb/style.css- Glassmorphism styling with red/blue accents, performance fallback forbackdrop-filterweb/script.js- NUI logic: message receiver, drag-drop, tooltips, hotkey bindings (1-5)client/ox_nui_integration.lua- Client glue with NUI callbacks and key mappingsserver/README.update_item_meta.md- Server event documentation formoveItem,useHotkey,updateItemMetaweb/preview_inventory_red_blue_fixed.svg- Visual mockupfxmanifest.lua Changes
New files added to
filesblock. Custom NUI disabled by default:Enabling the Custom NUI
client_script 'client/ox_nui_integration.lua'ui_page 'web/ui.html'and comment out the defaultserver/README.update_item_meta.mdOriginal prompt
Summary
Add a modern NUI (HTML/CSS/JS) inventory UI to the repository and minimal client integration glue so the resource can optionally use the new UI while keeping existing ox_inventory backend logic intact.
Design references
Include the example images the user provided to match the visual style (body silhouette + limb bars, glass/transparent panels, red & blue accents):
Goals / Acceptance criteria
Add a new web/ UI (NUI) that implements the modern, semi-transparent red & blue themed inventory UI with:
Add a client integration file (client/ox_nui_integration.lua) that:
Update fxmanifest.lua file entries so the UI files are included and ui_page is set to web/ui.html. Do not remove existing fxmanifest content; append the web files and ui_page entries.
Add a small server-side README (server/README.update_item_meta.md) that documents the expected server event ox_inventory:updateItemMeta and ox_inventory:moveItem for persisting backpack metadata and forwarding drag/drop moves.
Files to create
Implementation details (what the PR must do)
Testing guidance (for the PR description)
Images
Include the three reference images the user provided to guide design:
Deliverable
Create a new pull request that adds the files and the fxmanifest updates described above on a new branch.
Do not assign reviewers or include any personal accounts in the P...
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.