Conversation
Co-authored-by: KingTyl3r <17015281+KingTyl3r@users.noreply.github.com>
… and error handling Co-authored-by: KingTyl3r <17015281+KingTyl3r@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add modern NUI inventory UI with client 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 a new HTML/CSS/JS NUI inventory interface with semi-transparent glassmorphism styling and red/blue accents. Includes client integration glue for ox_inventory while keeping existing backend logic intact.
New Files
web/ui.html- NUI entrypoint with 8x3 inventory grid, equipment slots (backpack/parachute/armor/weapons), body silhouette with limb health bars, hotkey slots 3-5web/style.css- Glassmorphism effects, red/blue gradients, health bar coloring, drag/drop feedbackweb/script.js- Message handling, drag/drop, tooltips, context menus, health display updatesclient/ox_nui_integration.lua- Client glue: intercepts inventory events, builds NUI payloads, registers KeyMappings for hotkeys 1-5, forwards callbacks to serverserver/README.update_item_meta.md- Documentation for required server events (moveItem,useHotkey,updateItemMeta)web/preview_inventory_red_blue_fixed.svg- UI mockup previewfxmanifest.lua Changes
Enabling the Custom NUI
TODO
ox_inventory:moveItem,ox_inventory:useHotkey,ox_inventory:updateItemMeta(documented in README)Original 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 (user-provided images):
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 handling drag/drop moves.
Files to create
Implementation details
Testing guidance (for the PR description)
Notes
References
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.