Installation
Install Eleven Inventory on FiveM: ox_inventory 2.45+, clothing items, the illenium patch, the ui_page line and server.cfg with Qbox, QBCore or ESX first.
Requirements
| Resource | Required? | What for |
|---|---|---|
| Official ox_inventory, v2.45 or newer | Yes | It's the inventory. Eleven Inventory only replaces its interface |
| ox_lib | Yes | Commands, notifications and helpers |
| oxmysql | Yes | Stores worn clothing in the precinto_wearables table |
qbx_core, qb-core or es_extended | Yes | Identifies the character |
| illenium-appearance with the included patch | For the Equipment panel | Reads and saves the character's clothes |
Check your ox_inventory version
Eleven Inventory needs the official ox_inventory v2.45 or newer. To see which one you have, open ox_inventory/fxmanifest.lua and look for the version line:
version '2.45.0'
If the number is lower, update ox_inventory first. If there's no such line, or your ox_inventory doesn't come from communityox, it's probably a fork: see the FAQ.
Tip
New to escrowed scripts? The general guide Install with Keymaster walks through the download, the server license key and escrow.
Step by step
Download the resource from Cfx.re Keymaster (Granted Assets) using the same account that owns your server's license key. Keymaster lists it as Eleven Inventory; inside there's a single folder,
precinto-inventory.Copy the folder
precinto-inventoryinto your resources folder. Don't rename it.Add the clothing items to ox_inventory:
- Open
ox_inventory/data/items.luaand paste the entries fromprecinto-inventory/ox_inventory_items/items.luainside the table it returns, before the last closing brace}. That file is data meant to be edited, not ox_inventory code. - Add one image per garment to
ox_inventory/web/images/(or wherever yourinventory:imagepathconvar points). No images are included: use your own, square PNGs of 100×100 or larger, namedwear_mask.png,wear_hat.png,wear_glasses.png,wear_earrings.png,wear_chain.png,wear_decal.png,wear_jacket.png,wear_vest.png,wear_gloves.png,wear_pants.png,wear_shoes.png,wear_bag.png,wear_watch.pngandwear_bracelet.png.
- Open
Patch illenium-appearance. It's one
patchcommand or one block to paste. See illenium-appearance patch.Point ox_inventory at the new interface. Open
ox_inventory/fxmanifest.lua, find this line:ui_page 'web/build/index.html'and replace it with:
ui_page 'https://cfx-nui-precinto-inventory/web/build/index.html'Read Change the ox_inventory UI safely first: it takes two minutes and saves you trouble.
Add the resource to
server.cfg, with your framework before it and after ox_inventory and illenium-appearance:ensure ox_lib ensure oxmysql ensure qbx_core # or qb-core, or es_extended: whichever you use ensure ox_inventory ensure illenium-appearance ensure precinto-inventoryOn start,
precinto-inventorylooks forqbx_core,qb-coreores_extended, in that order. If it finds none, the console says:[precinto-inventory] No supported framework found (qbx_core, qb-core, es_extended). Set Config.Framework.and the panel can't identify the character. Check that your framework is in
server.cfgbeforeprecinto-inventory. If detection picks the wrong one, force it inconfig.luawithConfig.Framework = 'qbx','qb'or'esx'.Restart the whole server. The
precinto_wearablestable is created on start; there's no SQL to import. Don't hot-start withensure: the change to ox_inventory'sfxmanifestdoesn't apply while it's running.Tune
config.lua: language, slots, commands, animations and restrictions. Every option is in Configuration.
Warning
Don't rename the precinto-inventory folder. The interface and the ui_page line look for it by that name.
Note
Don't want the Equipment panel? Set Config.Wearables.enabled = false in config.lua and skip steps 3 and 4. You keep the theme and the camera orbit.
Change the ox_inventory UI safely
Eleven Inventory doesn't replace ox_inventory: it only tells it which page to load. To do it without risk:
Back up
ox_inventory/fxmanifest.luabefore you touch it.Change only the
ui_pageline. Don't remove thefileslist or any other line: ox_inventory still needs its images and data.Type it exactly like this, with single quotes and the
precinto-inventoryfolder:ui_page 'https://cfx-nui-precinto-inventory/web/build/index.html'Restart the whole server and open the inventory. If a player still sees the old interface, they should clear their FiveM cache once.
To roll back, restore your backup or put the line back as it was (
ui_page 'web/build/index.html') and restart. Your items aren't touched: ox_inventory stores them.
Important
Every ox_inventory update brings back its original fxmanifest.lua, so the line goes back to the stock one. Repeat this change after updating. See Updating.
If the interface doesn't load: option B
If, after changing ui_page, you still get the original interface or a blank screen, copy the interface into ox_inventory instead:
- Back up
ox_inventory/web/build/. - Copy everything inside
precinto-inventory/web/build/intoox_inventory/web/build/, replacingindex.htmland theassets/folder. Leaveox_inventory/web/images/alone. - Keep ox_inventory's original
ui_pageline. - Restart the server.
Important
With option B you have to copy the interface again after every update of precinto-inventory or ox_inventory.
To go back to the stock interface with option B, restore your ox_inventory/web/build/ backup.
First test
- Watch the server console on start:
precinto-inventoryshould start with no errors. A red warning about illenium-appearance means the patch is missing (step 4). - Join with a character and open the inventory: you should see the new interface with the Equipment panel beside it. If you still see the old one, clear your FiveM cache once and rejoin.
- The first time you open the inventory, what you're wearing shows up in the panel slots.
- Drag a garment from the panel to the grid: it comes off and becomes an item. Drag it back to the panel to put it on.
- Try a command, for example
/hat, to take your hat off and put it back on. - Hold the middle mouse button over the inventory and move the mouse: the camera swings around your character.
If something's off, check Troubleshooting.
"You lack the required entitlement to use precinto-inventory"
If the server console shows:
You lack the required entitlement to use precinto-inventory
the resource isn't tied to the license key your server uses. Check that:
- The
sv_licenseKeyinserver.cfgbelongs to the same Cfx.re account you bought the script with. - You downloaded the resource again from Keymaster after buying (don't use a copy from another account).
- You haven't edited any escrowed file. Only the open files can be changed:
config.lua,locales/and the install folders. - You restarted the server after changing the key: the entitlement is checked on start.
Every case is covered in the general guide Install with Keymaster.
Still failing? Open a ticket on our Discord with your Cfx.re account name and the console message.
Next steps
- Equipment panel and The interface: what players see.
- Troubleshooting, if something's off.
- Updating and the general Update a script guide, for when a new version comes out.