Introduction
Automatic clothing thumbnail generator & browser for FiveM — captures every drawable with transparent backgrounds via green screen chroma key.
Free & Open Source | Dependencies: screenshot-basic | License: Apache 2.0
uz-scripts/uz_AutoShot
1
Overview
uz_AutoShot is a free, open-source clothing thumbnail generator for FiveM. It teleports your ped to an underground studio, iterates through every drawable and texture variation, captures each one with a green screen background, and removes it server-side to produce transparent PNG thumbnails. A built-in clothing browser lets players visually browse and apply items in-game. Other scripts can consume the photos via a local HTTP API — no file duplication needed.
Features
Installation
Add to Resources
Drop the uz_AutoShot folder into your server's resources directory.
Update server.cfg
ensure screenshot-basic
ensure uz_AutoShotStart the Server
Dependencies install automatically on first start — install.lua runs npm install if node_modules is missing. No manual build step required.
Commands
| Command | Description |
|---|---|
/shotmaker | Open capture studio — select categories, adjust camera, start |
/wardrobe | Open clothing browser — browse thumbnails, apply items, re-capture |
Both commands are configurable via Customize.Command and Customize.MenuCommand in Customize.lua.
Configuration
All settings live in Customize.lua:
| Setting | Default | Description |
|---|---|---|
Customize.Command | 'shotmaker' | Capture command name |
Customize.MenuCommand | 'wardrobe' | Browser command name |
Customize.ScreenshotFormat | 'png' | Output format (png / webp / jpg) |
Customize.TransparentBg | true | Enable green screen removal (PNG only) |
Customize.ScreenshotWidth | 512 | Capture resolution width |
Customize.ScreenshotHeight | 512 | Capture resolution height |
Customize.CaptureAllTextures | false | Capture all texture variants, not just default |
Customize.BatchSize | 10 | Captures before each batch pause |
Customize.GCInterval | 20 | Captures between garbage collection runs |
Camera presets, green screen dimensions, studio lighting intensity, and clothing categories are all fully configurable.