Installation
Overview
ML Autocapture creates clothing, prop, vehicle and outfit images inside FiveM. It can produce transparent inventory icons, cinematic batches, and free-camera photos.
Quick Start
- Download the resource from CFX Portal.
- Extract it as
ml_autocapturewithout renaming the folder. - Install
screencapture,ox_libandml_bridge. - Add the resources in this order:
1ensure ox_lib
2ensure ml_bridge
3ensure screencapture
4ensure ml_autocaptureThe folder must remain named ml_autocapture. A different resource name locks the script.
Access
The default command is available to framework administrators and players allowed by the optional ACE permission.
1add_ace group.admin ml_autocapture.use allow1Config.Command = 'autocapture'
2Config.EnableCommand = true
3Config.AceRestricted = true
4Config.AcePermission = 'ml_autocapture.use'Run /autocapture in chat or open the studio from another server resource:
1exports['ml_autocapture']:OpenStudio(source)The export does not check permissions. Check access in the calling resource.
Output folders
- Clothing with root
oxwrites toox_inventory/web/images/clothing/. - Props with root
oxwrite toox_inventory/web/images/. - Self-contained output writes below
ml_autocapture/images/.
Each prop entry has an item name and a model name. The item name becomes the PNG filename. A model named nc_windowway_metal mapped to item model_windowway_metal produces model_windowway_metal.png.
Headless clothing props
The studio sets this client preference before clothing captures and warns when it is not active:
1seta allowEmptyHeadDrawable trueIf hats, glasses or earrings still show the mannequin head, run it in F8 on the capture client and reconnect.
Verify
- Start all required resources.
- Confirm the version banner prints without dependency errors.
- Open
/autocaptureas an administrator. - Capture one prop with
Only missingdisabled. - Confirm the PNG is written to the selected output root and has transparency.
screenshot-basic is not started: Startscreencapturebefore ML Autocapture and verify its manifest providesscreenshot-basic.- The game appears behind the subject: Keep
Config.Capture.settleFramesat its default or raise it on a slow client. - A prop is skipped: Disable
Only missing, verify the model resource is started and check that the item/model pair exists inConfig.Props.list. - Files land in
ml_autocapture/shots/:ox_inventorywas not running. Start it before ML Autocapture, or pick the self-contained output root.