Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DelPerroSands

DPS Inventory

The inventory for DPS Enhanced: Qbox servers on FiveM for GTAV Enhanced.

It is ox_inventory by Overextended, with the Lime Scripts rework on top (equipment slots, backpacks, armour plates, 3D item inspection, a shop cart and a redesigned screen), plus a sixth theme in the DelPerroSands colours and a self status panel that shows your own health and injuries on the inventory screen.

Based on: ox_inventory 2.48.1 and the Lime Scripts rework as of 30 October 2026.

Status: running on the DPS Enhanced test server since 28 November 2026. Tested in game: the screen, moving items, worn bags, vests and shops. Not yet tried on Enhanced: 3D weapon inspection.

The resource folder must be named ox_inventory. Other resources call it by that name (exports.ox_inventory, its events, its image path). DPS Inventory is the name of this project, not of the folder.

What it is for

One inventory screen that also tells a player how their character is doing. Items, worn gear, a bag, quick slots, a shop cart, and under the body figure: health, food, water, stress and injuries. A player should not need a separate HUD or a typed command to know they are bleeding.

It is a drop-in for ox_inventory. Every export, event, hook and item definition that works with ox_inventory 2.48.1 works here, so scripts written for ox_inventory need no changes.

Credits

This project exists because of other people's work. All of it is theirs unless listed under "What DelPerroSands changed" below.

Work Authors Licence
ox_inventory: the inventory itself, its item, weapon, shop, stash and vehicle systems, its security model and its web screen Linden, Luke, Dunak and the Overextended contributors GPL-3.0-or-later
Ox Inventory Rework: equipment and utility slots, backpacks, armour plates, 3D inspection, the shop cart with card payments, the redesigned screen and its five themes Lime Scripts (Squidward97) and contributors GPL-3.0-or-later
DelPerroSands theme, the self status panel, the carry-over for old bags, the item tools, the merge up to ox_inventory 2.48.1, and this documentation DaemonAlex, for DelPerroSands GPL-3.0-or-later

If this is useful to you, the people to thank are the ox_inventory authors (sponsor Linden) and Lime Scripts.

The full legal notices are in NOTICE.md. The licence text is in LICENSE.

What you get

From ox_inventory:

  • Slot-based inventory with per-item metadata, weapons as items, attachments and ammo.
  • Shops, stashes, vehicle trunks and gloveboxes, drops, crafting, evidence lockers.
  • Everything validated on the server, with logging and hooks other scripts can use.

From the Lime Scripts rework:

  • Equipment slots: a middle panel round a body figure for a backpack, phone, radio, armour and free utility slots, plus a quick-slot row on keys 1 to 5.
  • Backpacks: a worn bag has its own panel and keeps its own contents.
  • Armour plates: wear a vest, insert plates, plates wear down as you take damage.
  • 3D inspection: look a weapon or any item over in 3D and fit attachments from there.
  • Shop cart: add to a cart and pay once, by cash or bank card.
  • A redesigned screen: search, filters, favourites, rarity colours, a new context menu, sounds made in the browser, and themes players can switch between.

From DelPerroSands:

  • The delperro theme: the DPS Look. Cream on navy, amber running to orange for anything that fills, Barlow Condensed labels, no outlines and no glow. It is the default theme here.
  • A self status panel: under the body figure, meters for health, armour, food, water and stress, and a short list of what is wrong with you. Injured limbs light up on the figure and name the injury when you point at them. See "The status panel" below.
  • The DPS item list: data/items.lua loads the city's items from two files and decides for each one whether it is kept, held back or dropped. An item whose script is not installed is held back by itself.
  • Old bags keep their contents: when you turn a stock container item into a worn backpack, bags players already own carry their contents over the first time they are seen.
  • Two tools in tools/: one sorts an item list into categories and rarities, one shrinks oversized item pictures.
  • ox_inventory 2.48.0 and 2.48.1 applied on top of the rework, which was built on 2.47.9. That brings in the upstream fixes of those releases, including the checks that reject a client-supplied vehicle inventory id.

What DelPerroSands changed

Kept short on purpose, so updates stay easy. Every change is one of these:

File Change
web/src/styles/delperro.scss New. The DelPerroSands theme.
web/src/main.tsx Imports the theme.
web/src/utils/uistyle.ts Adds delperro to the theme list.
web/src/components/inventory/InventoryChrome.tsx Adds the theme to the settings menu.
client.lua Adds delperro to the themes a player may save. Starts and stops the status panel with the inventory.
modules/status/client.lua New. Gathers the player's condition and sends it to the screen. Reads injuries from dps_core.
web/src/components/inventory/PlayerStatus.tsx New. The status panel.
web/src/components/inventory/PlayerUtility.tsx Puts the status panel under the body figure.
web/src/components/utils/BodySvg.tsx The figure reads the status message and names injuries in its tooltip.
web/src/index.scss, web/src/styles/outline.scss Styles for the status panel.
modules/items/server.lua A bag that was a stock container keeps its contents when it becomes a backpack.
modules/items/containers.lua Adds the briefcase and the paramedic bag as hand-carried bags.
data/items.lua, data/items_dps.lua, data/items_legacy.lua The DPS item list and its rules.
data/animations.lua Eating, drinking and smoking presets for items.
tools/categorise.py, tools/shrink_images.py New. Item list and picture tools.
setup/delperrosands.example.cfg New. An example of the settings.
init.lua The default theme is delperro.
locales/en.json Strings for the theme and the status panel.
fxmanifest.lua Version, repository link and description.
12 files from ox_inventory 2.48.0 and 2.48.1 Applied unchanged. See UPDATING.md.
README.md, NOTICE.md, UPDATING.md Documentation.

Requirements

  • A FiveM for GTAV Enhanced server, with OneSync on.
  • oxmysql and ox_lib.
  • Qbox (qbx_core). The stock ox_inventory bridges for ox_core, ESX and ND Core are still in the code and untouched, but only Qbox is used and tested here.
  • To build the screen: Node.js 20.19 or newer with npm, or Bun.

Install

  1. Put this repository in your resources folder, in a folder named ox_inventory.

  2. Build the screen on your own PC, before the folder goes on the server. The built files are not kept in the repository, and an Enhanced server cannot build them when it starts. Without them the inventory is a blank screen.

    cd web
    npm install --legacy-peer-deps   # or: bun install
    npm run build                    # or: bun run build

    --legacy-peer-deps is needed with npm because one dependency has not yet declared support for React 19. Bun does not need it.

  3. Check data/. items.lua loads the DPS item list. weapons.lua, shops.lua, stashes.lua, vehicles.lua and crafting.lua are the upstream examples: put your own in.

  4. Add the convars you want to your ox.cfg. See below.

  5. Start it after your framework, oxmysql and ox_lib:

    ensure ox_inventory

Settings

Everything is set with convars. The ones that come from ox_inventory are documented at https://overextended.dev/docs/ox_inventory. The ones added by the rework are documented in README-backpack-utility.md. The most used:

# Theme: delperro (default here), tactical, glass, minimal, midnight, outline.
# This is only the default. Each player can pick their own from the gear button.
setr inventory:uistyle "delperro"

# Screen sounds, 0 to 1. 0 turns them off.
setr inventory:uisound 0.5

# Equipment slots. Set to [] to turn the whole feature off.
# setr inventory:utilityslots [ ... ]   (full example in README-backpack-utility.md)

# Backpack weight: share of the contents' weight that counts while worn, and while stored.
setr inventory:backpackcarryweight 60
setr inventory:backpackstorageweight 30

# Draw a worn bag and vest on the character. {} leaves the character's clothing alone.
setr inventory:utilityclothing {}

# Armour plates. Set to {} to turn them off.
setr inventory:armourplates { "item": "armour_plate", "armourPerPlate": 50, "maxPlates": 2, "actionTime": 1500 }

# Shop cart: allow paying by bank card, and an optional item needed to do so.
setr inventory:cardpayment true
setr inventory:carditem ""

# Self status panel under the body figure. 0 turns it off. Refresh is in milliseconds.
setr inventory:statuspanel 1
setr inventory:statusrefresh 1000

A complete working example, with a slot layout for phone, ID and keys, radio and vest, is in setup/delperrosands.example.cfg.

Moving a server onto it

For a server that runs stock ox_inventory today.

  1. Copy the running ox_inventory folder somewhere safe. Dump the ox_inventory table and your framework's player table, which holds each player's items.
  2. Build this project in a separate folder (see Install).
  3. Copy your data/ files over the examples. If you changed client.lua or modules/items/containers.lua on your server, carry those edits across by hand.
  4. Copy your web/images in. Keep the rework's own pictures as well.
  5. Add the settings to ox.cfg. Utility slots are added after your pocket slots, so saved inventories do not move.
  6. Swap the folder and restart the whole server, not just the resource.
  7. Check that modules/status/client.lua and web/build/ are in the folder you swapped in. A copy command that skips files named client.lua will leave the status panel out, and the inventory then fails to load for players without any server error.
  8. Tell your players: keys 1 to 5 now use the quick slots, and a vest is worn, not used. A vest with no plates in it gives no armour.

To go back: stop the server, restore the folder, restore the two tables, start the server.

The status panel

Open the inventory and the equipment panel shows your own condition under the body figure.

Shown Where it comes from
Health, armour, air (under water) The game itself.
Food, water, stress The player statebags hunger, thirst and stress, as qbx_core sets them. A meter is left out if its value does not exist.
Hurt body parts, bleeding, critically hurt, unconscious dps_core, through its injuries service. Left out if it is not running.
Anything else Other resources, through the export below.

The inventory never names a medical script. It asks dps_core, and dps_core asks whichever medical script is underneath. Today that is dps_medical.

Fifteen body parts can be hurt, and each is listed by name with how bad it is, for example "Left hand: painful". The body figure has six parts, and each shows the worst injury in its area, so a hurt hand lights the arm.

A meter turns amber under half and red under a quarter. Stress is read the other way round. The panel only updates while the inventory is open.

Adding your own lines. The inventory fires the client event ox_inventory:statusOpened each time it opens. Answer it with the client export setStatusLines:

AddEventHandler('ox_inventory:statusOpened', function()
    exports.ox_inventory:setStatusLines({
        { label = 'Fever', severity = 2 },          -- 0 note, 1-2 amber, 3-4 red
        { label = 'Diagnosed: Flu', severity = 3 },
    })
end)

Each call replaces that resource's earlier lines. Pass an empty table to clear them. Lines are cleared when the resource stops. Send only what the player's character would know.

Categories and rarity

The filter buttons and the rarity colours read two optional fields on an item:

['lockpick'] = {
    label = 'Lockpick',
    category = 'tools',     -- food, weapons, clothing or tools
    rarity = 'uncommon',    -- common, uncommon, rare, epic or legendary
},

Weapons, ammo and attachments are filed under weapons without a category. To sort a large list in one go, run python3 tools/categorise.py on your item file. It works from item names and from food and drink effects, only fills in items that have neither field, and prints what it did. Check the result: it is a first pass, not a judgement. Keep a copy of the file first.

Item pictures

The screen never draws an item picture larger than 256 px. python3 tools/shrink_images.py web/images resizes anything bigger and leaves the rest alone. It needs Pillow. Every player downloads the pictures folder, so smaller is better.

Bags

Two kinds of bag, and an item is one or the other.

  • A worn backpack goes in the backpack slot and opens as its own panel. It has a backpack = { slots = ..., maxWeight = ... } table on the item, and its name is in the backpack slot's items list in inventory:utilityslots.
  • A hand-carried bag is a stock ox_inventory container, listed in modules/items/containers.lua. It can limit what goes inside: the paramedic bag takes medical items only.

To turn an existing container into a worn backpack without emptying it: give the item a backpack table, remove its entry from containers.lua, and add its name to the backpack slot. The first time the server sees an old bag, its old container id becomes the bag's serial and its saved contents are renamed to match. A container's item limits do not carry over: backpacks have none. Keep an item as a container if it needs them.

The DelPerroSands theme

The colours are at the top of web/src/styles/delperro.scss:

Colour Value Used for
Navy #0e1a2b, #152539, #1b2e45 Panels, slots, filled slots
Line #2b4057 Slot and control borders
Cream #f2ead9 Text
Orange #ff7a45 The panel outline, the hovered slot, the active control, the main button

To change the look, edit that file and build again. To preview a theme in a browser without the game, run npm start in web/ and open the page with ?uistyle=delperro.

Works with

Resource How
Anything written for ox_inventory Unchanged. Same resource name, exports, events and hooks.
qbx_core Food, water and stress meters, read from its player statebags.
dps_core Injuries, bleeding and the downed state on the status panel.
Any other resource Add lines to the status panel with the setStatusLines export. See "The status panel".

Not compatible: scripts written for another inventory, unless they also support ox_inventory.

The other DPS Enhanced resources

Each one is its own repository in the DPS-Enhanced organisation.

Resource What it does
dps_core One set of calls for dispatch, vehicle keys, items, fuel and injuries, so a resource never names the script underneath
dps_medical Health, injuries, bleeding, last stand with crawling, and death
dps_police Police for every law enforcement job: duty, cuffs, evidence, fines, impound, jail
dps_comms Voice chat on the Enhanced voice system: talking distance, radio, phone calls
dps_jobs The DPS job list: police, medical, fire and justice, with ranks and pay
dps_welcome Loading screen with video or pictures, and a spawn screen
dps_lib The DPS look and a few helpers the other resources share

The plan for this inventory is in docs/inventory-plan.md.

Author

Made by DaemonAlex for DelPerroSands.

Updating

There are two things to keep up with: ox_inventory itself, and the Lime Scripts rework. UPDATING.md has the steps for both, written from doing it for 2.48.1.

Documentation

Support

This is shared in the open because the licence asks for that and because it may save someone else the work. It comes with no support. For help with ox_inventory itself, use the Overextended documentation. Please do not ask the ox_inventory or Lime Scripts authors about changes made here.

Licence

GPL-3.0-or-later, the same as ox_inventory and the rework. You may use, change and share it. If you share a changed version, it must stay under the same licence, keep these credits, and come with its source. See LICENSE and NOTICE.md.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages