Screenshotting Clothes
How to generate thumbnails for addon (streamed) clothing.
Addon Clothing Screenshots
The thumbnail generator spawns a ped in a hidden sky studio, applies one item at a time against a green backdrop, takes a screenshot, then chroma-keys it into a transparent PNG.
Requirements
screenshot-basic must be started (set in
server.cfgbeforeop-clothing).Config.Thumbnails.Enabled = true.You must pass the admin permission gate (or run it on a player you control).
Your addon clothing must be streamed and working in-game first.
Step 1 - Quick test first
Validate framing and the green-screen key on a few items before a full run:
/op_clothing_thumbs_test male 3
/op_clothing_thumbs_test female 3This captures only the first 3 drawables per category. Open the clothing menu and check the tiles look correct.
Step 2 - Full capture
Run a complete batch per gender:
Step 3 - Targeted captures (optional)
/op_clothing_thumbs_hair [male|female] [count]
Hairstyles only (head visible)
/op_clothing_thumbs_wrist [male|female]
Watches + bracelets only
/op_clothing_thumbs_test [male|female] [count]
First N drawables per category
You can also re-shoot a single item from the in-game admin menu (/clothingadmin → item → re-capture) when one thumbnail needs a redo.
Step 4 - Build the hash map
Addon clothing shifts the raw drawable indices whenever packs are added or removed. The hash map keeps existing thumbnails resolving to the right item:
Step 5 - Serve the new images
Captured PNGs are written to web/thumbnails inside the Config.Thumbnails.StoreResource (default op-clothing). To serve the fresh nui:// URLs:
If you moved the store to a separate assets resource, that resource is remounted automatically and no restart of op-clothing is needed.
Where files go
Config.Thumbnails.StoreResource
op-clothing
Resource the PNGs live in
Config.Thumbnails.StorePath
web/thumbnails
Folder inside that resource
Config.Thumbnails.LocalBaseUrl
nui://op-clothing/web/thumbnails/%s.png
URL template for captured items
Config.Thumbnails.BaseUrl
CDN
URL template for vanilla items
Troubleshooting
"screenshot-basic is not started" - add it to
server.cfgabove op-clothing.Green edges on items - lower
Config.Thumbnails.KeyHard(more aggressive key).Wrong framing for a slot - tweak
Config.Thumbnails.CameraSlots['component:X'](fov,distance,zPos).Thumbnails don't update -
restart op-clothing(or reopen the menu) so the newnui://files are mounted.Access denied - check your permissions.
Last updated