UZ Scripts
uz_AutoShot

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

GitHubuz-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_AutoShot

Start the Server

Dependencies install automatically on first start — install.lua runs npm install if node_modules is missing. No manual build step required.


Commands

CommandDescription
/shotmakerOpen capture studio — select categories, adjust camera, start
/wardrobeOpen 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:

SettingDefaultDescription
Customize.Command'shotmaker'Capture command name
Customize.MenuCommand'wardrobe'Browser command name
Customize.ScreenshotFormat'png'Output format (png / webp / jpg)
Customize.TransparentBgtrueEnable green screen removal (PNG only)
Customize.ScreenshotWidth512Capture resolution width
Customize.ScreenshotHeight512Capture resolution height
Customize.CaptureAllTexturesfalseCapture all texture variants, not just default
Customize.BatchSize10Captures before each batch pause
Customize.GCInterval20Captures between garbage collection runs

Camera presets, green screen dimensions, studio lighting intensity, and clothing categories are all fully configurable.

On this page