LC FiveM Tools is a Visual Studio Code extension for working with GTA V assets used by FiveM.
Features
YDR Viewer
Open .ydr files directly in VS Code.
Inspect GTA V RSC7 drawable resources in a 3D viewer.
YTD Viewer
Open .ytd texture dictionaries directly in VS Code.
Browse the textures contained in a YTD.
Preview compressed GTA V textures.
Export textures to PNG.
Import a PNG and write it back into the currently opened YTD.
The editor refreshes the preview after a successful write.
Texture formats
Current texture editing is focused on DXT1.
The project also contains DXT5 codec support, but format-changing writes are not advertised as stable yet. DXT5 support will be expanded in a later release after the YTD format metadata update is fully verified.
Requirements
Visual Studio Code 1.125.0 or newer.
GTA V / FiveM asset files in RSC7 format for the resources you want to inspect.
Usage
Install LC FiveM Tools.
Open a .ydr or .ytd file in VS Code.
For YTD files, select a texture to preview it.
Use Export to save the selected texture as PNG.
Use Import to replace the selected texture with a PNG.
The imported texture is written directly to the YTD file currently being edited.
Back up your YTD files before editing them. The current editor writes changes directly to the original file.
Known limitations
Texture format-changing writes are not yet advertised as stable.
Texture resizing and mipmap editing are not currently supported.
Some GTA V texture formats are not currently exposed as import targets.