Installation
Overview
ML Autocapture creates clothing, prop, vehicle and outfit images inside FiveM. It can produce transparent inventory icons, cinematic batches, free-camera photos and layered vehicle configurator assets.
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)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/. - Vehicle configurator layers write below
ml_autocapture/images/configurator/.
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
On the administrator client used for capture, run this once in the F8 console:
1seta allowEmptyHeadDrawable trueRestart ML Autocapture after changing it. Without this client preference, hats, glasses and earrings may include the mannequin head.
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. - The output is written locally — Start
ox_inventorybefore ML Autocapture or select the self-contained output root.