Documentation

Using your CDN with FiveM

Instead of bundling item images, phone assets, leaderboards and other files into your resources, host them here and point to them by URL. Pick a topic on the left to get started.

Item images (imagepath)

One convar change in server.cfg. No editing the web build.

This is a single change in your server.cfg. ox_inventory loads item images from the inventory:imagepath convar. By default it points at the resource: nui://ox_inventory/web/images.

Change that one line to your team CDN folder. You do not edit any web files or rebuild the NUI.

server.cfg
# Before (default)
setr inventory:imagepath "nui://ox_inventory/web/images"

# After (your CDN)
setr inventory:imagepath "https://cdn.capestick.dev/YOUR_TEAM"

ox_inventory resolves each item image as imagepath/<item name>.png. The filename must be lowercase and match the item's name key in data/items.lua exactly. So an item named water loads from https://cdn.capestick.dev/YOUR_TEAM/water.png. Upload your PNGs to the team folder with matching names and you are done.