Configuration
Every config.lua option in Eleven Inventory for FiveM: language, framework, clothing slots, naked values, toggle commands, restrictions, animations and camera.
Everything is set in precinto-inventory/config.lua, which ships open. Restart the server after changing it.
General
| Key | Default | What it does |
|---|---|---|
Config.Locale | 'en' | Language for notifications and the resource's own interface texts: 'en', 'es' or any locales/<code>.json you add. Missing keys fall back to English. |
Config.Framework | 'auto' | 'auto' detects qbx_core, qb-core or es_extended, in that order. Force it with 'qbx', 'qb' or 'esx' if it picks the wrong one. |
Config.Debug | false | Prints extra information to the server console. |
Note
Texts that come from ox_inventory (Use, Give, Drop, Ammo…) still come from ox_inventory's own translations, as usual. Config.Locale only changes the texts of precinto-inventory.
Equipment panel (Config.Wearables)
| Key | Default | What it does |
|---|---|---|
enabled | true | false hides the Equipment panel and turns off everything in this section. The theme and the orbit keep working. |
slots | 14 slots | Panel slots, in display order (4 per row). See below. |
naked | Vanilla GTA values | "No garment" drawables per component, for male and female. See below. |
stampOwner | true | Stamps the character who first wore a garment on the item (metadata.owner = { id, name, registered_at }). Other resources read it with the GetWearableOwner export. |
respectUniform | true | While an illenium uniform is on, changes are saved to the civilian skin but not drawn over it, and toggle commands refuse. Set it to false if players get stuck with the uniform message (see illenium-appearance patch). |
dropMaxDistance | 10.0 | When dropping a garment on the ground from the panel, the maximum distance in meters between the coords sent by the client and the player's server-side position. |
dropPrefix | 'Drop' | Label prefix for ground drops created by the panel. |
Slots (slots)
Each slot is one line with these fields:
| Field | What it is |
|---|---|
name | Item name in ox_inventory (the ones in ox_inventory_items/items.lua). |
kind | 'component' or 'prop': a GTA ped component or ped prop. |
slotId | Component id (1 mask, 3 arms/gloves, 4 legs, 5 bag, 6 feet, 7 neck, 9 vest, 10 decals, 11 top) or prop id (0 hat, 1 glasses, 2 ears, 6 watch, 7 bracelet). |
label | Translation key for the slot name (locales/*.json). |
icon | Icon key the interface draws. |
command | Toggle command for that garment ('mask' → /mask), or false for none. |
newRow | Optional. true starts a new panel row before this slot. |
Each kind/slotId pair can only appear once. A malformed or duplicated slot is skipped with a warning in the server console.
The default slots:
name | kind | slotId | icon | command |
|---|---|---|---|---|
wear_mask | component | 1 | mask | mask |
wear_hat | prop | 0 | hat | hat |
wear_glasses | prop | 1 | glasses | glasses |
wear_earrings | prop | 2 | earrings | earrings |
wear_jacket | component | 11 | jacket | shirt |
wear_vest | component | 9 | vest | vest |
wear_chain | component | 7 | chain | chain |
wear_decal | component | 10 | decal | decal |
wear_pants | component | 4 | pants | pants |
wear_shoes | component | 6 | shoes | shoes |
wear_bag | component | 5 | bag | bag |
wear_gloves | component | 3 | gloves | gloves (with newRow = true) |
wear_watch | prop | 6 | watch | watch |
wear_bracelet | prop | 7 | bracelet | bracelet |
Important
If you rename an item in slots, rename it in ox_inventory/data/items.lua and in its image file name too.
"No garment" values (naked)
Each component has a list of drawables that mean "wearing nothing", separately for male (male) and female (female). They're used for two things:
- When a garment comes off, the first value in the list that's valid on the ped is applied.
- When reading the saved skin, any value in the list (or
0) counts as "no garment", so no item is created for it.
| Component | Male | Female |
|---|---|---|
| 1 mask | 0 | 0 |
| 3 arms (no gloves) | 15 | 15 |
| 4 legs (underwear) | 21, 61 | 15 |
| 5 bag | 0 | 0 |
| 6 feet (barefoot) | 34, 0 | 35, 0 |
| 7 neck | 0 | 0 |
| 8 undershirt | 15 | 15, 14 |
| 9 vest | 0 | 0 |
| 10 decals | 0 | 0 |
| 11 top (bare torso) | 15 | 15, 14 |
Component 3 (arms) is mostly worked out from the top so gloves match the sleeves; the value here is only the fallback.
Warning
These are the vanilla GTA values for the two freemode peds. If your server streams clothing packs that replace base drawables (EUP over mp_m_freemode_01, for example), some of these numbers may now be real clothes. Check in game and adjust them.
Commands (Config.Commands)
| Key | Default | What it does |
|---|---|---|
enabled | true | Turns all toggle commands on or off. Each command's name is set on its slot (command); false on a slot means that slot has no command. |
How they behave: Commands and exports.
Restrictions (Config.Restrictions)
The server checks these on every clothing change.
| Key | Default | What it does |
|---|---|---|
blockWhenDead | true | Dead or in last stand: no changes at all. |
blockWhenCuffed | true | Cuffed: no dragging in the panel. |
commandsWhileCuffed | true | Cuffed players can still use the toggle commands, without the animation. |
deadStateBags | { 'isDead', 'dead' } | Player state bags that count as "dead", on top of the framework data. |
cuffedStateBags | { 'isCuffed', 'handcuffed', 'isHandcuffed' } | Player state bags that count as "cuffed", on top of the framework data. |
On Qbox and QBCore the isdead, inlaststand and ishandcuffed metadata are checked too. ESX has no standard flag, so there only the state bag lists count: add the ones your death and cuff scripts set.
Animations (Config.Animations)
| Key | Default | What it does |
|---|---|---|
enabled | true | Plays animations when dressing and undressing. |
list | One per slot | Animation for each slot. Keys are 'component:<id>' or 'prop:<id>'. Remove an entry to change that slot with no animation. |
Each entry can have:
| Field | What it is |
|---|---|
on / off | Animation for putting on / taking off. |
both | One animation for both. |
veh | Animations that replace the normal ones while seated in a vehicle (with their own on / off). |
dict, clip | GTA animation dictionary and clip. |
dur | Duration in milliseconds. |
swap | When the garment swaps, as a fraction of dur. Defaults to 0.5. |
flag | Upper body only by default (50, you can keep walking); 2 for full body. |
Camera orbit (Config.Orbit)
Hold the middle mouse button over the inventory to swing the gameplay camera around your character.
| Key | Default | What it does |
|---|---|---|
enabled | true | Turns the orbit on. |
sensitivityX | 0.30 | Horizontal sensitivity. |
sensitivityY | 0.20 | Vertical sensitivity. |
pitchMin | -60.0 | Lowest vertical angle, in degrees. |
pitchMax | 40.0 | Highest vertical angle, in degrees. |
Notifications (Config.Notify)
Client-side function that shows notifications. It uses ox_lib's lib.notify by default. Swap it to use your own notify resource:
Config.Notify = function(text, kind)
lib.notify({ description = text, type = kind or 'inform' })
end
Translations
Texts live in locales/en.json and locales/es.json. Top-level keys are the notifications, slot names (slot.*) and command help; the ui object holds the interface's own texts (Equipment, Ground, Amount, Expires…).
To add a language, copy en.json under the new code (say fr.json), translate the values without touching the keys, and set Config.Locale = 'fr'. If the file doesn't exist, English is used and the console prints a warning.