Resource tools · Vehicle Editor guide
Resource Optimizer
Find oversized YTD, YFT, and YDR assets and reduce supported texture sizes for a lighter FiveM resource.
Optimizer finds .ytd, .yft, and .ydr files under stream that are larger
than 16 MiB. Only YTD files can be optimized automatically. Large YFT/YDR files
are marked Unfixable for manual optimization.
Scan resources
- Scan a workspace in Scanner.
- Open Optimizer and click Scan Resources.
- Review the total stream size and files above 16 MiB.
Results are sorted from largest to smallest. The 16 MiB threshold is a streaming risk indicator, not proof that a file is broken.
Optimize Selected
- Select no more than ten YTD files.
- Choose a maximum resolution: 4096, 2048, 1024 (default), or 512.
- Click Optimize Selected.
- Wait for extraction, compression, and rebuilding to finish.
For each YTD, the application:
- creates
<file>.backupif that backup does not already exist; - extracts the YTD into temporary XML and DDS files;
- resizes textures to the selected limit and power-of-two dimensions;
- compresses them as
BC3_UNORM/DXT5; - generates mipmaps;
- rebuilds the YTD and removes its temporary directory.
Cancellation is checked between processing steps. The current file is restored
from .backup if cancellation interrupts it; earlier completed files stay
optimized.
Version 1.2.2 limitation: the Cancel button calls a renderer bridge wrapper that is not currently defined, even though the backend handler exists. Do not rely on Cancel. Select small batches and let them finish; never terminate the process while a YTD is being rebuilt.
Choose a resolution
- 4096: highest detail and the smallest size reduction.
- 2048: a common compromise for large body or livery textures.
- 1024: the application default and a more aggressive reduction.
- 512: useful for small/distant assets but can visibly blur details.
Because every texture is forced to BC3, normal maps or textures intended for
BC5/another format can lose quality. Optimize a copy, compare size and visuals,
and keep .backup until all testing is complete.