Fix FiveM Inventory Images Not Showing
The item works. Players can carry it, use it and sell it. But in the inventory it’s a blank square, a broken-image icon or just a name. FiveM inventory images not showing is the item complaint I see most under tutorials, and it’s almost always one of five causes.
Each one is quick to check. Here’s how item images actually load on ox_inventory and qb-inventory, how to find which cause you have, and how to make icons that look like they belong together. If you’re adding the item itself as well, how to add items in FiveM covers the rest of it.
How FiveM Inventory Images Load
An inventory’s screen is a small web page running inside the game. It shows each icon by loading a file from a folder inside the inventory resource. FiveM only sends players the files a resource lists in its fxmanifest.lua, and it works out that list when the resource starts.
So an icon shows when three things are true: the file is in the folder the inventory reads, its name matches what the inventory asks for exactly, and the inventory has started since the file got there.
ox_inventory asks for <item name>.png in ox_inventory/web/images/, unless the item sets client.image. That can be a different file name in the same folder, or a full nui:// or https:// path. If ox isn’t installed yet, our ox_inventory setup guide starts from zero.
qb-inventory asks for whatever the item’s image field says, inside qb-inventory/html/images/:
-- qb-core/shared/items.lua
ls_boltcutter = { name = 'ls_boltcutter', label = 'Bolt Cutters', weight = 1500, type = 'item', image = 'ls_boltcutter.png', unique = true, useable = true, shouldClose = true, description = 'Cuts padlocks and chain.' },
The default ESX inventory doesn’t show item icons at all. More on that below.
FiveM Inventory Images Not Showing: The Five Causes
Work down them in order.
1. The Image Is in the Wrong Folder
This is the big one after an inventory switch. Your images don’t move with you. PNGs that lived in qb-inventory/html/images/ mean nothing to ox_inventory, which is why copying them into ox_inventory/web/images/ is a fix you’ll see suggested under ox_inventory install videos.
These are the default folders, inside each inventory’s own resource:
| Inventory | Image folder |
|---|---|
| ox_inventory | web/images |
| qb-inventory, ps-inventory, lj-inventory | html/images |
| Quasar, Origen, JPR | html/images |
| CodeM mInventory Remake | html/itemimages |
| Core Inventory | html/img |
| One Inventory | web/images |
| jaksam’s inventory | _images |
| ak47_inventory | web/build/images |
| Chezza Inventory | web/dist/assets/items |
| tgiann-inventory | images, in its separate inventory_images resource |
| Default ESX inventory | None. It shows no icons |
Forks move these around, so trust the manifest over any table, this one included. Open the inventory’s fxmanifest.lua and find the files block. The images line tells you the folder and the file type it serves. Here’s the line from ox_inventory’s:
files {
-- ...
'web/images/*.png',
}
2. The File Name Doesn’t Match
The inventory asks for one exact name. Close isn’t enough.
-- ox_inventory/data/items.lua
['ls_boltcutter'] = {
label = 'Bolt Cutters',
weight = 1500,
},
-- the file on disk is web/images/BoltCutters.png, so ox never finds it
ox is asking for ls_boltcutter.png. Rename the file to match, or point the item at the file you have:
['ls_boltcutter'] = {
label = 'Bolt Cutters',
weight = 1500,
client = {
image = 'BoltCutters.png',
},
},
Renaming the file is the better fix. Name every icon after its item and you’ll never have to wonder which file belongs to what.
Three more ways a name goes wrong:
- Case. On a Linux host,
Lockpick.pngandlockpick.pngare two different files. - Hidden extensions. Windows hides known extensions by default, so the file you named
lockpick.pngcan really belockpick.png.png. Turn on file name extensions in File Explorer’s View menu to check. - qb’s image field. It must include the extension and match the file exactly, as in
image = 'lockpick.png'.
3. It Isn’t a PNG
Both ox_inventory and qb-inventory list only *.png files from their image folders. A .jpg or .webp can sit in the right folder with the right name and never be sent to a single player. Convert it to PNG, and on qb, change the image field to match.
4. The Inventory Hasn’t Restarted Since You Added It
FiveM works out which files to send when a resource starts. Drop a new PNG into the folder while the server runs and players won’t get it until that resource restarts. If restarting the server ever fixed an icon for you without explanation, this was why.
On a dev server, restart the inventory and check again. On a live server, remember what an inventory restart costs: ox_inventory clears ground drops and temporary stashes when it restarts, and anything that depends on it stops with it. Adding icons ahead of your scheduled restart is the painless way.
5. Something Else Sets the Path
If the folder, the name and the file type are all right and it’s still blank, something is pointing the inventory somewhere else.
inventory:imagepath. ox_inventory reads its image folder from this convar,nui://ox_inventory/web/imagesby default. If yourserver.cfgsets it, maybe from a tutorial that pointed it at another resource or an image host, ox looks there instead.- Per-stack images on ox. Scripts can give a single stack its own icon through
metadata.image(a file name in the image folder, without.png) ormetadata.imageurl(a full link). If only some stacks of an item are blank, one of these points at a file that isn’t there. - Old stacks on qb-inventory. A stack keeps the image it was made with until the player relogs, and stashes keep it for good. If you changed an icon and old copies still show the old one, that’s qb, not your file.
Find Every Missing Image at Once
Checking items one by one gets old fast. These print every item whose icon isn’t where the inventory will look. Run them from the folder that holds your inventory and framework resources. On a Linux host:
# ox_inventory: item names with no matching PNG
grep -oE "^\s*\['[a-zA-Z0-9_]+'\]\s*=\s*\{" ox_inventory/data/items.lua \
| sed -E "s/^\s*\['([a-zA-Z0-9_]+)'\].*/\1/" \
| while read -r name; do
[ -f "ox_inventory/web/images/$name.png" ] || echo "missing: $name.png"
done
# qb-inventory: image fields with no matching file
grep -oE "image\s*=\s*'[^']+'" qb-core/shared/items.lua \
| sed -E "s/image\s*=\s*'([^']+)'/\1/" | sort -u \
| while read -r img; do
[ -f "qb-inventory/html/images/$img" ] || echo "missing: $img"
done
On a Windows host, in PowerShell:
# ox_inventory: item names with no matching PNG
Select-String -Path 'ox_inventory\data\items.lua' -Pattern "^\s*\['([a-zA-Z0-9_]+)'\]\s*=\s*\{" |
ForEach-Object { $_.Matches[0].Groups[1].Value } |
Where-Object { -not (Test-Path "ox_inventory\web\images\$_.png") } |
ForEach-Object { "missing: $_.png" }
# qb-inventory: image fields with no matching file
Select-String -Path 'qb-core\shared\items.lua' -Pattern "image\s*=\s*'([^']+)'" -AllMatches |
ForEach-Object { $_.Matches } | ForEach-Object { $_.Groups[1].Value } | Sort-Object -Unique |
Where-Object { -not (Test-Path "qb-inventory\html\images\$_") } |
ForEach-Object { "missing: $_" }
The ox check reads item names from items.lua and looks for <name>.png. An item that sets its own client.image will show up as a false alarm, so check those by hand. Windows ignores case, so the PowerShell version won’t flag a case mismatch. Keep every name lowercase and you’ll never need it to.
The Default ESX Inventory Has No Icons
If you’re on ESX with its default inventory, there’s nothing to fix. It’s a list of item names by design, with no image folder at all. If you want icons on ESX, switch to ox_inventory, which our inventory scripts comparison recommends for ESX anyway. Then the ox parts of this guide apply.
How to Make Item Icons That Look Right
Getting icons to show is half the job. The other half is making forty icons look like one set instead of forty images from forty websites.
- Square, transparent PNGs. A white background turns into a white box on a dark inventory.
- 128 x 128 is a good default. Big enough to stay sharp in a slot, small enough that a few hundred of them don’t bloat what every player downloads.
- One style. The same angle, the same light and the same padding around the object.
- Check the licence on icon packs and on anything you didn’t make yourself.
The cleanest icons are shots of the actual prop, so the icon matches what players hold in their hand. The free way is a green-screen screenshot resource. Bentix’s fivem-greenscreener shoots props (addon props included), clothing and vehicles against a green screen and removes the backdrop, according to its readme.
Crop and resize the results in a free editor like GIMP, and name each file after its item. If the prop doesn’t exist yet, how to make custom props in FiveM covers your options.
Making and Installing Icons In Game With LMX Item Creator
Full disclosure: this is our script. It exists because every cause above bit us more than once.
In the LMX Item Creator, an icon can come from five places. Drop a PNG on the item, paste one with Ctrl V, give it a link (fetched by the server, not your game, and only over https://), pick a PNG you put in its import/ folder, or press Studio and shoot the prop in game. Whichever you use, the icon is trimmed, squared, resized to 128 pixels (or 100 or 256 if you prefer) and saved as a PNG. Two identical icons become one file.
The studio is the part I’d point at. The prop spawns high above you, frozen, lit at noon in clear weather, shot against a flat backdrop and cut out. You pick the angle (front, three quarter or top), nudge and zoom it, and switch the backdrop to magenta for green props.
Precise edges takes two shots, on black and on white, for glass and thin edges. Nothing in it is networked, so nobody else sees the prop, and the weather goes back exactly as it was.
Then, when you publish, it handles the folder and restart problems for you:
- ox_inventory: the icon’s path goes on the item definition, so there’s no folder to copy into.
- Inventories with their own image folder: LMX copies the icon in as
<item name>.pngwhen it has write access, and that inventory restarts so it picks the file up. Write access takes oneadd_filesystem_permissionline inserver.cfg, on artifact 31608 or newer. Without it, the file waits in an install folder and the item shows Icon to copy until you copy it in and press Confirm, and LMX checks it’s really there. - The default ESX inventory: icons show inside LMX only, since ESX has nowhere to show them.
Importing a pile of existing items? Put <item name>.png files in its import/ folder first, and each imported item picks up its icon by name.
As everywhere in this tool, only ox_inventory, qb-inventory (v2 and legacy) and the ESX default inventory are tested in game. The other inventories are built from each vendor’s docs. mf-inventory and BP Inventory don’t document where they keep icons, so on those two you copy them by hand. And if the prop itself doesn’t exist yet, make it from a photo with LMX Prop Creator, then shoot its icon here.
The LMX Item Creator showcase video walks through icons, shops and crafting in game.
For the other item tools and what they do with images, see our item creator comparison.
FiveM Item Image Questions
What size should FiveM item images be? Square, with 128 x 128 as a good default. Bigger files still work. They just cost every player more download for no visible gain.
Can I use JPG or WebP images?
Not from the image folder. ox_inventory and qb-inventory only serve *.png from there. On ox, client.image can point at a hosted JPG or WebP link instead, but a PNG in the folder is the simpler fix.
Why did my images break when I switched inventories? Each inventory reads from its own folder. Copy your PNGs into the new one (see the table above) and check the names follow the new inventory’s rules.
Can I use a link instead of a file?
On ox_inventory, yes: client.image takes a full path or link. qb-inventory only takes a file name in its own folder.
Why do only some stacks show the wrong icon?
On ox, a script set metadata.image or metadata.imageurl on those stacks. On qb, those stacks were made before you changed the icon. They update when the player relogs, but stashes keep the old one.
Are there free icon packs? ox_inventory and qb-inventory both ship a large set, and free item resources often include their own. Check the licence before you use them. For free inventories and tools to build on, see our free FiveM scripts.
Still blank after all five? Post your inventory, your framework and a screenshot of the image folder in our Discord, and we’ll find it.