UZ Scripts
uz_AutoShot

Introduction

All-in-one screenshot studio for FiveM. Captures clothing, vehicles, objects, and appearance overlays with transparent backgrounds.

Free & Open Source | Dependencies: screenshot-basic | License: Apache 2.0

GitHubuz-scripts/uz_AutoShot

65


Overview

uz_AutoShot is a free, open-source screenshot studio for FiveM. It teleports your ped to an underground void with chroma key walls and studio lighting, iterates through every drawable and texture variation, captures each one, and removes the background server-side to produce transparent PNGs. Supports clothing components, props, head overlays (facial hair, makeup, etc.), vehicles with color selection, and world objects. A built-in wardrobe browser lets players visually browse and apply items in-game. Photos are served via FiveM's native cfx-nui protocol, no port forwarding or external HTTP server needed.


Features


Installation

Add to Resources

Drop the uz_AutoShot folder into your server's resources directory. The folder must be named exactly uz_AutoShot.

Update server.cfg

ensure screenshot-basic
ensure uz_AutoShot

Start the Server

Dependencies install automatically on first start via FiveM's built-in yarn. The UI is pre-built, no build step required.


Commands

CommandDescription
/shotmakerOpen capture studio. Select categories, adjust camera, start batch capture
/wardrobeOpen clothing browser. Browse thumbnails, apply items, re-capture broken shots
/shotcar <model>Quick-capture a single vehicle by model name
/shotprop <model>Quick-capture a single world prop by model name

All commands are configurable via Customize.lua. Command names for /shotmaker and /wardrobe can be changed with Customize.Command and Customize.MenuCommand.

Permissions

Commands support FiveM's ACE permission system. Set Customize.AceRestricted = true in Customize.lua, then add to your server.cfg:

## Per player
add_ace identifier.license:YOUR_LICENSE command.shotmaker allow
add_ace identifier.license:YOUR_LICENSE command.wardrobe allow
add_ace identifier.license:YOUR_LICENSE command.shotcar allow
add_ace identifier.license:YOUR_LICENSE command.shotprop allow

## Or use a group
add_ace group.admin command allow
add_principal identifier.license:YOUR_LICENSE group.admin

Works with any FiveM identifier: license, steam, discord, fivem, etc.


Camera Controls

KeyAction
Left MouseRotate around subject
Right MouseRoll camera
Scroll WheelZoom in / out
W / SAdjust camera height
Q / EAdjust field of view
RReset camera to default
CSave current camera angle for this category

Saved angles persist for the session and are automatically applied when capturing that category.


Configuration

All settings live in Customize.lua:

SettingDefaultDescription
Customize.Command'shotmaker'Capture command name
Customize.MenuCommand'wardrobe'Browser command name
Customize.AceRestrictedfalseRequire ACE permission for commands
Customize.ScreenshotFormat'png'Output format: 'png', 'webp', or 'jpg'
Customize.TransparentBgtrueEnable chroma key removal (PNG only)
Customize.ScreenshotWidth512Capture resolution width
Customize.ScreenshotHeight512Capture resolution height
Customize.CaptureAllTexturesfalseCapture all texture variants, not just default
Customize.ChromaKeyColor'magenta'Chroma key color: 'green' or 'magenta'
Customize.BatchSize10Captures before each batch pause
Customize.GCInterval20Captures between garbage collection runs
Customize.RoutingBucket999Routing bucket used during capture

Camera presets, green screen dimensions, studio lighting, clothing categories, prop categories, overlay categories, vehicle settings, and the object list are all configurable in the same file.

On this page