uz_AutoShot
Photo Files & URLs
Where uz_AutoShot saves photos, how files are named, the URLs they are served from, and the GTA category reference.
How Photos Are Served
Captured photos are written to shots/ inside the resource and served over FiveM's native cfx-nui protocol:
https://cfx-nui-uz_AutoShot/shots/<path>.<ext>Any NUI page in any resource can load these URLs with a plain <img src="...">. There is no HTTP server and no port to open. Since 2.1.0 there is no HTTP API either; see Removed in 2.1.0.
https://cfx-nui-uz_AutoShot/shots/male/11/5.png
https://cfx-nui-uz_AutoShot/shots/female/prop_0/3.png
https://cfx-nui-uz_AutoShot/shots/male/overlay_1/3.png
https://cfx-nui-uz_AutoShot/shots/female/tattoos/mpbeach_overlays/mp_bea_f_back_000.png
https://cfx-nui-uz_AutoShot/shots/vehicles/adder.png
https://cfx-nui-uz_AutoShot/shots/objects/prop_bench_01a.pngAfter capturing new photos, restart the resource (restart uz_AutoShot). FiveM indexes the files of a resource when it starts, so new photos only become servable after the next start. Photos that already existed keep working.
Directory Structure
shots/
├── male/
│ ├── 2/ # Hair (component 2)
│ │ ├── 0.png # drawable 0
│ │ └── 1.png
│ ├── 11/ # Tops (component 11)
│ │ ├── 5.png # drawable 5, texture 0
│ │ └── 5_2.png # texture 2, only with CaptureAllTextures = true
│ ├── prop_0/ # Hats (prop 0)
│ │ └── 0.png
│ ├── overlay_1/ # Facial Hair (overlay 1)
│ │ ├── 0.png
│ │ └── 1.png
│ └── tattoos/
│ └── mpbeach_overlays/ # collection, lowercased
│ └── mp_bea_m_back_000.png # overlay, lowercased
├── female/
│ └── ...
├── vehicles/
│ ├── adder.png
│ └── ...
└── objects/
├── prop_bench_01a.png
└── ...Naming Convention
| Type | Path |
|---|---|
| Components | {gender}/{componentId}/{drawable}.{ext} |
| Components, texture > 0 | {gender}/{componentId}/{drawable}_{texture}.{ext} |
| Props | {gender}/prop_{propId}/{drawable}.{ext} (or _{texture} as above) |
| Overlays | {gender}/overlay_{overlayIndex}/{drawable}.{ext} (never a texture suffix) |
| Tattoos | {gender}/tattoos/{collection}/{overlay}.{ext}, both lowercased |
| Vehicles | vehicles/{modelName}.{ext} |
| Objects | objects/{modelName}.{ext} |
{gender}ismaleorfemale.- Texture 0 never gets a suffix. Other textures are only captured with
Customize.CaptureAllTextures = true. {ext}ispngwhileCustomize.TransparentBgis on, otherwiseCustomize.ScreenshotFormat.getPhotoFormat()returns it.- For tattoos,
{overlay}is the overlay name for that gender (hashMaleorhashFemalein the tattoo list).
GTA Category Reference
Components (clothing)
| Component ID | Label | Camera Preset |
|---|---|---|
| 2 | Hair | hair |
| 1 | Mask | mask |
| 3 | Arms / Gloves | arms_gloves |
| 4 | Pants | legs |
| 5 | Bags | decals |
| 6 | Shoes | shoes |
| 7 | Accessories | accessories |
| 8 | Undershirt | tops |
| 9 | Body Armor | body |
| 10 | Decals | decals |
| 11 | Tops | tops |
Props (accessories)
| Prop ID | Label | Camera Preset |
|---|---|---|
| 0 | Hats | hats |
| 1 | Glasses | glasses |
| 2 | Ears | ears |
| 6 | Watches | watches |
| 7 | Bracelets | bracelets |
Head Overlays (appearance)
| Overlay Index | Label | Camera Preset | Color Type |
|---|---|---|---|
| 0 | Blemishes | face_overlay | Hair |
| 1 | Facial Hair | face_overlay | Hair |
| 2 | Eyebrows | face_overlay | Hair |
| 3 | Ageing | face_overlay | Hair |
| 4 | Makeup | face_overlay | Makeup |
| 5 | Blush | face_overlay | Makeup |
| 6 | Complexion | face_overlay | Hair |
| 7 | Sun Damage | face_overlay | Hair |
| 8 | Lipstick | face_overlay | Makeup |
| 9 | Moles & Freckles | face_overlay | Hair |
| 10 | Chest Hair | chest_overlay | Hair |
| 11 | Body Blemishes | chest_overlay | Hair |
Tattoo Zones
| Zone | Category | Camera Preset |
|---|---|---|
ZONE_TORSO (front) | Torso (Front) | tattoo_torso |
ZONE_TORSO (back) | Torso (Back) | tattoo_back |
ZONE_HEAD | Head | tattoo_head |
ZONE_LEFT_ARM | Left Arm | tattoo_left_arm |
ZONE_RIGHT_ARM | Right Arm | tattoo_right_arm |
ZONE_LEFT_LEG | Left Leg | tattoo_left_leg |
ZONE_RIGHT_LEG | Right Leg | tattoo_right_leg |
ZONE_HAIR | Hair Fades | hair |
Torso front / back comes from the game's tattoo shop data; override single tattoos with Customize.TattooFacing.
Vehicle Classes (auto-detected)
| Class ID | Label |
|---|---|
| 0 | Compacts |
| 1 | Sedans |
| 2 | SUVs |
| 3 | Coupes |
| 4 | Muscle |
| 5 | Sports Classics |
| 6 | Sports |
| 7 | Super |
| 8 | Motorcycles |
| 9 | Off-Road |
| 10-22 | Industrial, Utility, Vans, Boats, Aircraft, Service, Emergency, Military, etc. |