### Build GTAUtil Cache Source: https://context7.com/gizzdev/gtautil/llms.txt Scans the GTA V installation directory to index files. This must be executed before most other commands and after game updates. ```powershell # Build the initial cache (required before using most commands) gtautil buildcache # Output: Loading DLC list # Loading file tree # Processing files... # Cache saved to cache.json ``` -------------------------------- ### Get DLC List Source: https://context7.com/gizzdev/gtautil/llms.txt Lists all DLCs detected in the current GTA V installation. ```powershell gtautil getdlclist # Output: # default # patchday1ng # patchday2ng # mpchristmas2 # ... # mpheist4 ``` -------------------------------- ### Build Cache Source: https://context7.com/gizzdev/gtautil/llms.txt Generates cache data by scanning the GTA V installation directory. This cache is required for most GTAUtil operations. ```APIDOC ## Build Cache ### Description Generates cache data by scanning the GTA V installation directory, indexing all game files and their locations. This cache is essential for many GTAUtil operations and should be rebuilt after each game update. ### Method CLI Command ### Endpoint N/A ### Parameters None ### Request Example ```powershell gtautil buildcache ``` ### Response #### Success Response (Output) ``` Loading DLC list Loading file tree Processing files... Cache saved to cache.json ``` ``` -------------------------------- ### Access Help Commands Source: https://github.com/gizzdev/gtautil/blob/master/README.md Display general help or help for a specific applet. ```bash gtautil help ``` ```bash gtautil appletname help ``` -------------------------------- ### Help Commands Source: https://context7.com/gizzdev/gtautil/llms.txt Displays usage information for the CLI or specific commands. ```powershell # Show all available commands gtautil help # Show help for specific command gtautil extractarchive help gtautil genpeddefs help gtautil gencol help ``` -------------------------------- ### Build Cache Source: https://github.com/gizzdev/gtautil/blob/master/README.md Generates initial cache data. This should be performed after every game update. ```powershell gtautil buildcache #it will take a while to process all files ``` ```powershell gtautil buildcache ``` -------------------------------- ### Import Meta from XML Source: https://context7.com/gizzdev/gtautil/llms.txt Converts XML metadata files back to GTA V binary format, with options for metadata and entity deletion. ```APIDOC ## Import Meta from XML ### Description Converts XML metadata files back to GTA V binary format. Supports metadata mode for preserving entity LOD parenting relationships. ### Method CLI Command ### Endpoint N/A ### Parameters #### Query Parameters - **--input** (string) - Required - Path to the XML metadata file (e.g., `.ymap.xml`). - **--directory** (string) - Required - Directory where the converted binary file will be saved. - **--metadata** (boolean) - Optional - If set, imports associated metadata (e.g., LOD parenting) from a JSON file. - **--delete** (string) - Optional - Comma-separated list of GUIDs for entities to delete during import. - **--deletemode** (string) - Optional - Mode for deletion. Options: `delete` (remove entity) or `dummy` (replace with placeholder). Defaults to `delete`. ### Request Example ```powershell # Import a single XML file gtautil importmeta --input "C:\MyMod\myinterior.ymap.xml" --directory "C:\Output" # Import with metadata (preserves LOD parenting) gtautil importmeta --input "C:\MyMod\world.ymap.xml" --directory "C:\Output" --metadata # Delete specific entities by GUID during import gtautil importmeta --input "C:\MyMod\world.ymap.xml" --directory "C:\Output" --metadata --delete 123456789,987654321 # Delete mode options: delete (remove entity) or dummy (replace with placeholder) gtautil importmeta --input "C:\MyMod\world.ymap.xml" --directory "C:\Output" --metadata --delete 123456789 --deletemode dummy ``` ### Response #### Success Response (Output File) ``` C:\Output\myinterior.ymap ``` ``` -------------------------------- ### Import Metadata from XML Source: https://context7.com/gizzdev/gtautil/llms.txt Converts XML metadata files back into binary format, with optional support for preserving LOD parenting or deleting specific entities. ```powershell # Import a single XML file gtautil importmeta --input "C:\MyMod\myinterior.ymap.xml" --directory "C:\Output" # Output: C:\Output\myinterior.ymap # Import with metadata (preserves LOD parenting) gtautil importmeta --input "C:\MyMod\world.ymap.xml" --directory "C:\Output" --metadata # Delete specific entities by GUID during import gtautil importmeta --input "C:\MyMod\world.ymap.xml" --directory "C:\Output" --metadata --delete 123456789,987654321 # Delete mode options: delete (remove entity) or dummy (replace with placeholder) gtautil importmeta --input "C:\MyMod\world.ymap.xml" --directory "C:\Output" --metadata --delete 123456789 --deletemode dummy ``` -------------------------------- ### Export Metadata to XML Source: https://context7.com/gizzdev/gtautil/llms.txt Converts binary game metadata files into editable XML format. ```powershell # Export a ymap file to XML gtautil exportmeta --input "C:\MyMod\myinterior.ymap" --directory "C:\Output" # Output: C:\Output\myinterior.ymap.xml # Export a ytyp file gtautil exportmeta --input "C:\MyMod\mybuilding.ytyp" --directory "C:\Output" # Export with LOD metadata (for entity parenting) gtautil exportmeta --input "C:\MyMod\world.ymap" --directory "C:\Output" --metadata # Output: C:\Output\world.ymap.xml # C:\Output\world.ymap.json (metadata mapping) ``` -------------------------------- ### Import XML Meta Source: https://github.com/gizzdev/gtautil/blob/master/README.md Imports meta data from an XML file. ```powershell gtautil importmeta --input 'path\to\file.ymap.xml' --directory 'output\directory' ``` -------------------------------- ### Create RPF Archive Source: https://context7.com/gizzdev/gtautil/llms.txt Creates an RPF archive from a given folder structure, automatically handling nested RPFs. ```APIDOC ## Create RPF Archive ### Description Creates an RPF archive from a folder structure. Sub-folders ending with `.rpf` are automatically converted to nested RPF archives within the generated package. ### Method CLI Command ### Endpoint N/A ### Parameters #### Query Parameters - **--input** (string) - Required - Path to the folder containing the files and sub-folders to be archived. - **--output** (string) - Required - Directory where the RPF archive will be created. - **--name** (string) - Required - The name for the generated RPF archive (without extension). ### Request Example ```powershell # Create a basic DLC archive gtautil createarchive --input "C:\MyMod\dlc_content" --output "C:\Output" --name "mydlc" ``` ### Response #### Success Response (Output File) ``` C:\Output\mydlc.rpf ``` ### Request Example (Input Folder Structure) ``` C:\MyMod\dlc_content\ ├── content.xml ├── setup2.xml └── x64\ └── models\ └── cdimages\ └── mymodels.rpf\ <-- Will become nested RPF ├── mycar.ydr └── mycar.ytd ``` ``` -------------------------------- ### Generate and Remove LOD Lights Source: https://github.com/gizzdev/gtautil/blob/master/README.md Create a project directory for LOD lights and remove lights within a specific radius of a coordinate. ```bash gtautil genlodlights --create -o path/to/directory ``` ```powershell gtautil genlodlights --delete -i path/to/directory --position 0,0,0 --radius 200 ``` -------------------------------- ### Create RPF Archives Source: https://context7.com/gizzdev/gtautil/llms.txt Packages a folder structure into an RPF archive. Sub-folders ending in .rpf are automatically converted to nested archives. ```powershell # Create a basic DLC archive gtautil createarchive --input "C:\MyMod\dlc_content" --output "C:\Output" --name "mydlc" # Example folder structure for input: # C:\MyMod\dlc_content\ # ├── content.xml # ├── setup2.xml # └── x64\ # └── models\ # └── cdimages\ # └── mymodels.rpf\ <- Will become nested RPF # ├── mycar.ydr # └── mycar.ytd # Output: C:\Output\mydlc.rpf ``` -------------------------------- ### Create RPF Archive Source: https://github.com/gizzdev/gtautil/blob/master/README.md Creates an RPF archive from a folder. Sub-folders ending in .rpf are converted into archives within the generated RPF. ```powershell gtautil createarchive --input path\to\inputfolder --output path\to\outputfolder --name dlc ``` ```powershell gtautil createarchive --input build --output . --name dlc ``` -------------------------------- ### Generate Ped Definitions Source: https://context7.com/gizzdev/gtautil/llms.txt Creates ped definition files for clothing and props, supporting multiple platforms. ```powershell gtautil genpeddefs \ --create \ --output "C:\MyMod\clothing_project" \ --targets mp_m_freemode_01,mp_f_freemode_01 ``` ```powershell gtautil genpeddefs \ --input "C:\MyMod\clothing_project" \ --output "C:\MyMod\build" \ --reserve 200 \ --reserveprops 200 ``` ```powershell gtautil genpeddefs \ --input "C:\MyMod\clothing_project" \ --output "C:\MyMod\build_fivem" \ --reserve 200 \ --reserveprops 200 \ --fivem ``` ```powershell gtautil genpeddefs \ --input "C:\MyMod\clothing_project" \ --output "C:\MyMod\build_altv" \ --reserve 200 \ --reserveprops 200 \ --altv \ --name "myclothes" ``` ```powershell gtautil createarchive \ --input "C:\MyMod\build" \ --output "C:\MyMod" \ --name "dlc" ``` -------------------------------- ### Export Meta to XML Source: https://github.com/gizzdev/gtautil/blob/master/README.md Exports meta data to an XML file. ```powershell gtautil exportmeta --input 'path\to\file.ytyp' --directory 'output\directory' ``` -------------------------------- ### Compile GXT2 File Source: https://github.com/gizzdev/gtautil/blob/master/README.md Compiles GXT2 file data for a specific language. ```powershell gtautil compilegxt2 --lang american --output path\to\outputfolder ``` -------------------------------- ### Generate Ped Definitions Source: https://github.com/gizzdev/gtautil/blob/master/README.md Generates ped definition files for mp_freemode, including project creation, archive structure, and FiveM resource generation. ```powershell gtautil genpeddefs --create --output pedproject --targets mp_m_freemode_01,mp_f_freemode_01 ``` ```powershell gtautil genpeddefs --input pedproject --output build --reserve 200 --reserveprops 200 ``` ```powershell gtautil genpeddefs --input pedproject --output build --reserve 200 --reserveprops 200 --fivem ``` -------------------------------- ### Find Assets Source: https://github.com/gizzdev/gtautil/blob/master/README.md Finds YMAP, YTYP, or MLO room information based on coordinates. ```powershell gtautil find --position 123.12,456.45,789.65 ``` -------------------------------- ### Generate LOD Lights Source: https://context7.com/gizzdev/gtautil/llms.txt Manages LOD lighting data for custom maps by creating projects or removing lights within a specified radius. ```powershell # Create a LOD lights project from game data gtautil genlodlights --create --output "C:\MyMod\lodlights_project" # Remove LOD lights within radius of position gtautil genlodlights \ --delete \ --input "C:\MyMod\lodlights_project" \ --position 0,0,0 \ --radius 200 # Modified files saved to: C:\MyMod\lodlights_project\modified\ ``` -------------------------------- ### Generate Prop Definitions Source: https://context7.com/gizzdev/gtautil/llms.txt Generates archetype definitions (ytyp) for drawable props with automatic bounding box calculation. ```powershell gtautil genpropdefs --input "C:\MyMod\props\*.ydr" ``` ```powershell gtautil genpropdefs \ --input "C:\MyMod\props\*.ydr" \ --ytyp "C:\MyMod\existing\*.ytyp" ``` ```powershell gtautil genpropdefs \ --input "C:\MyMod\props\*.ydr" \ --output "C:\MyMod\output" ``` -------------------------------- ### Generate Archetype Definitions Source: https://github.com/gizzdev/gtautil/blob/master/README.md Generates .ytyp files from drawables. Optionally keep information from existing YTYP files. ```powershell gtautil genpropdefs --input 'path\to\*.ydr' ``` ```powershell gtautil genpropdefs --input 'path\to\*.ydr' --ytyp 'path\to\*.ytyp' ``` -------------------------------- ### Manage YMAP Metadata Source: https://github.com/gizzdev/gtautil/blob/master/README.md Export metadata from a YMAP file or import metadata from an XML file. ```bash gtautil exportmeta --input 'path\to\file.ymap' --directory 'output\directory' --metadata # Remove one or more entities from the ymap gtautil importmeta --input 'path\to\file.ymap.xml' --directory 'output\directory' --metadata ``` -------------------------------- ### Generate Collision Source: https://github.com/gizzdev/gtautil/blob/master/README.md Generates collision files from drawables, supporting static, embedded, and convex hull modes. ```powershell gtautil gencol --input mfile.ydr --output mfile.ybn ``` ```powershell gtautil gencol --input mfile.ydr --output file2.ydr ``` ```powershell gtautil gencol --input file.ydr --output file.ybn --mode hull ``` ```powershell gtautil gencol --input file.ydr --output file.ybn --mode hull --smooth 10 --triangles 200 ``` -------------------------------- ### Export Meta to XML Source: https://context7.com/gizzdev/gtautil/llms.txt Converts GTA V binary metadata files (ymap, ytyp, ymt, etc.) to human-readable XML format. ```APIDOC ## Export Meta to XML ### Description Converts GTA V binary metadata files (ymap, ytyp, ymt, etc.) to human-readable XML format for editing. ### Method CLI Command ### Endpoint N/A ### Parameters #### Query Parameters - **--input** (string) - Required - Path to the binary metadata file (e.g., `.ymap`, `.ytyp`). - **--directory** (string) - Required - Directory where the converted XML file will be saved. - **--metadata** (boolean) - Optional - If set, exports associated metadata (e.g., LOD mapping) to a separate JSON file. ### Request Example ```powershell # Export a ymap file to XML gtautil exportmeta --input "C:\MyMod\myinterior.ymap" --directory "C:\Output" # Export a ytyp file gtautil exportmeta --input "C:\MyMod\mybuilding.ytyp" --directory "C:\Output" # Export with LOD metadata (for entity parenting) gtautil exportmeta --input "C:\MyMod\world.ymap" --directory "C:\Output" --metadata ``` ### Response #### Success Response (Output Files) ``` C:\Output\myinterior.ymap.xml C:\Output\world.ymap.xml C:\Output\world.ymap.json (metadata mapping, if --metadata is used) ``` ``` -------------------------------- ### Generate Collision from Drawable Source: https://context7.com/gizzdev/gtautil/llms.txt Creates collision bounds (.ybn) or embeds them into drawable models (.ydr). ```powershell gtautil gencol --input "C:\MyMod\mybuilding.ydr" --output "C:\MyMod\mybuilding.ybn" ``` ```powershell gtautil gencol --input "C:\MyMod\myprop.ydr" --output "C:\MyMod\myprop_withcol.ydr" ``` ```powershell gtautil gencol --input "C:\MyMod\vehicle.ydr" --output "C:\MyMod\vehicle.ybn" --mode hull ``` ```powershell gtautil gencol \ --input "C:\MyMod\complex_model.ydr" \ --output "C:\MyMod\complex_model.ybn" \ --mode hull \ --smooth 10 \ --triangles 200 ``` -------------------------------- ### Find Ymap/Ytyp by Position Source: https://context7.com/gizzdev/gtautil/llms.txt Locates map assets and MLO rooms at specific coordinates. Supports radius-based searching and exporting results to a directory. ```powershell # Find all maps at a position gtautil find --position 123.12,456.45,789.65 # Output: # Found ymap: sp1_10.ymap at C:\Games\GTAV\...\sp1_10.rpf # Found ytyp: interior_building.ytyp # Found MLO room: main_lobby # Find with radius gtautil find --position 0,0,75 --radius 100 # Export found files to directory gtautil find --position 123.12,456.45,789.65 --output "C:\MyMod\found" ``` -------------------------------- ### Compile GXT2 Text Source: https://context7.com/gizzdev/gtautil/llms.txt Compiles GXT2 text entries for specific languages. ```powershell gtautil compilegxt2 --lang american --output "C:\MyMod\text" ``` -------------------------------- ### Inject YMAP Entities Source: https://github.com/gizzdev/gtautil/blob/master/README.md Injects YMAP entities back into a YTYP MLO room. Use the --mods switch to load drawable definitions for custom props. ```powershell gtautil injectentities --name 'output\file\name.ytyp' --ymap '\path\to\*.ymap' --ytyp '\path\to\mlo.ytyp' --position 123.12,456.45,789.65 --rotation 0,0,0,1 ``` ```powershell gtautil injectentities --name 'output\file\name.ytyp' --ymap 'path\to\*.ymap' --ytyp '\path\to\mlo.ytyp' --position 123.12,456.45,789.65 --rotation 0,0,0,1 --mods 'path\to\*.ydr' ``` -------------------------------- ### World to MLO Coordinate Conversion Source: https://context7.com/gizzdev/gtautil/llms.txt Converts global world coordinates into local coordinates relative to an MLO origin. ```powershell # Convert world position to MLO local position gtautil worldtomlo \ --mloposition 442.42,-985.06,29.88 \ --mlorotation 0,0,0,1 \ --position 450.5,-980.2,32.5 # Output: Local position relative to MLO origin ``` -------------------------------- ### Merge Ymaps Source: https://context7.com/gizzdev/gtautil/llms.txt Combines multiple ymap files into a single output file. ```powershell # Merge multiple ymaps gtautil mergeymap \ --ymap "C:\MyMod\maps\*.ymap" \ --output "C:\MyMod\output" \ --name "merged_map" # Output: C:\MyMod\output\merged_map.ymap ``` -------------------------------- ### Extract RPF Archives Source: https://context7.com/gizzdev/gtautil/llms.txt Extracts RPF archive contents to a directory, including recursive processing of nested archives. ```powershell # Extract a single archive gtautil extractarchive --input "C:\Games\GTAV\update\update.rpf" --output "C:\Extracted\update" # Extract a DLC pack archive gtautil extractarchive --input "C:\Games\GTAV\update\x64\dlcpacks\mpheist\dlc.rpf" --output "C:\Extracted\mpheist" # Output structure: # C:\Extracted\update\ # ├── common\ # │ └── data\ # │ └── dlclist.xml # ├── x64\ # │ └── levels\ # └── ... ``` -------------------------------- ### Extract YTYP MLO Rooms Source: https://github.com/gizzdev/gtautil/blob/master/README.md Extracts MLO rooms from a YTYP file into separate YMAP files. ```powershell gtautil extractentities --name '.\hei_dlc_heist_police' --ytyp '.\hei_dlc_heist_police.ytyp' --position 442.42960000,-985.06700000,29.88529000 --rotation 0,0,0,1 ``` -------------------------------- ### Extract RPF Archive Source: https://github.com/gizzdev/gtautil/blob/master/README.md Extracts the contents of an RPF archive to a specified output folder. ```powershell gtautil extractarchive --input path\to\archive.rpf --output path\to\outputfolder ``` -------------------------------- ### Extract RPF Archive Source: https://context7.com/gizzdev/gtautil/llms.txt Extracts the contents of an RPF archive to a specified output directory, recursively processing nested RPF files. ```APIDOC ## Extract RPF Archive ### Description Extracts the contents of an RPF (Rage Package File) archive to a specified output directory, recursively processing nested RPF files and properly decoding XML/meta files. ### Method CLI Command ### Endpoint N/A ### Parameters #### Query Parameters - **--input** (string) - Required - Path to the RPF archive to extract. - **--output** (string) - Required - Directory where the archive contents will be extracted. ### Request Example ```powershell # Extract a single archive gtautil extractarchive --input "C:\Games\GTAV\update\update.rpf" --output "C:\Extracted\update" # Extract a DLC pack archive gtautil extractarchive --input "C:\Games\GTAV\update\x64\dlcpacks\mpheist\dlc.rpf" --output "C:\Extracted\mpheist" ``` ### Response #### Success Response (Output Structure) ``` C:\Extracted\update\ ├── common\ │ └── data\ │ └── dlclist.xml ├── x64\ │ └── levels\ └── ... ``` ``` -------------------------------- ### Encrypt RPF Archives Source: https://context7.com/gizzdev/gtautil/llms.txt Applies GTA V encryption to RPF archives. Use the recursive flag to ensure nested archives are also encrypted. ```powershell # Encrypt a single archive gtautil fixarchive --input "C:\MyMod\dlc.rpf" # Recursively encrypt an archive and all nested RPFs gtautil fixarchive --input "C:\MyMod\dlc.rpf" --recursive # Process multiple archives gtautil fixarchive --input "C:\MyMod\*.rpf" --recursive ``` -------------------------------- ### Move/Offset Ymap Source: https://context7.com/gizzdev/gtautil/llms.txt Applies position and rotation offsets to entities within a ymap file. ```powershell # Move all entities by offset gtautil moveymap \ --ymap "C:\MyMod\original.ymap" \ --output "C:\MyMod\output" \ --name "moved_map" \ --position 100,50,0 # Move and rotate gtautil moveymap \ --ymap "C:\MyMod\original.ymap" \ --output "C:\MyMod\output" \ --name "moved_rotated" \ --position 100,50,0 \ --rotation 0,0,0.707,0.707 # 90 degree rotation ``` -------------------------------- ### Encrypt RPF Archive Source: https://github.com/gizzdev/gtautil/blob/master/README.md Fixes or encrypts an RPF archive recursively. ```powershell gtautil fixarchive --input path\to\archive.rpf --recursive ``` -------------------------------- ### Fix/Encrypt Archive Source: https://context7.com/gizzdev/gtautil/llms.txt Encrypts an RPF archive using GTA V's encryption scheme, with an option for recursive processing. ```APIDOC ## Fix/Encrypt Archive ### Description Encrypts an RPF archive using GTA V's encryption scheme, making it compatible with the game. Use the recursive flag to process nested archives. ### Method CLI Command ### Endpoint N/A ### Parameters #### Query Parameters - **--input** (string) - Required - Path to the RPF archive(s) to encrypt. Can use wildcards like `*.rpf`. - **--recursive** (boolean) - Optional - If set, recursively encrypts all nested RPF archives within the specified input. ### Request Example ```powershell # Encrypt a single archive gtautil fixarchive --input "C:\MyMod\dlc.rpf" # Recursively encrypt an archive and all nested RPFs gtautil fixarchive --input "C:\MyMod\dlc.rpf" --recursive # Process multiple archives gtautil fixarchive --input "C:\MyMod\*.rpf" --recursive ``` ### Response #### Success Response Archives are encrypted in place or new encrypted archives are created based on the input. ``` -------------------------------- ### Extract MLO Entities Source: https://context7.com/gizzdev/gtautil/llms.txt Extracts interior entities from a ytyp file into individual ymap files, converting local coordinates to world space. ```powershell # Extract entities from an MLO interior gtautil extractentities \ --name "police_station" \ --ytyp "C:\MyMod\hei_dlc_heist_police.ytyp" \ --position 442.42960000,-985.06700000,29.88529000 \ --rotation 0,0,0,1 # Output folder structure: # police_station\ # ├── police_station.original.ytyp (backup) # ├── main_room.ymap # ├── office.ymap # ├── garage.ymap ``` -------------------------------- ### Inject Entities to MLO Source: https://context7.com/gizzdev/gtautil/llms.txt Injects modified ymap entities back into an MLO ytyp. Supports custom props and cleaning missing entities. ```powershell gtautil injectentities \ --name "output\modified_police" \ --ymap "C:\MyMod\police_station\*.ymap" \ --ytyp "C:\MyMod\hei_dlc_heist_police.ytyp" \ --position 442.42960000,-985.06700000,29.88529000 \ --rotation 0,0,0,1 ``` ```powershell gtautil injectentities \ --name "output\modified_police" \ --ymap "C:\MyMod\police_station\*.ymap" \ --ytyp "C:\MyMod\hei_dlc_heist_police.ytyp" \ --position 442.42960000,-985.06700000,29.88529000 \ --rotation 0,0,0,1 \ --mods "C:\MyMod\custom_props\*.ydr" ``` ```powershell gtautil injectentities \ --name "output\cleaned_interior" \ --ymap "C:\MyMod\edited\*.ymap" \ --ytyp "C:\MyMod\original.ytyp" \ --position 0,0,0 \ --rotation 0,0,0,1 \ --deletemissing \ --static # Make all entities static ``` -------------------------------- ### Extract MLO Entities Source: https://context7.com/gizzdev/gtautil/llms.txt Extracts entities from an MLO (interior) ytyp file into separate ymap files, converting positions to world coordinates. ```APIDOC ## Extract MLO Entities ### Description Extracts entities from an MLO (interior) ytyp file into separate ymap files, one per room. Transforms entity positions from local MLO space to world coordinates. ### Method CLI Command ### Endpoint N/A ### Parameters #### Query Parameters - **--name** (string) - Required - The base name for the output files and directory (e.g., `police_station`). - **--ytyp** (string) - Required - Path to the MLO's ytyp file. - **--position** (string) - Required - The world position of the MLO's origin (X,Y,Z coordinates). - **--rotation** (string) - Required - The world rotation of the MLO's origin (quaternion or Euler angles, e.g., `0,0,0,1` for no rotation). ### Request Example ```powershell # Extract entities from an MLO interior gtautil extractentities \ --name "police_station" \ --ytyp "C:\MyMod\hei_dlc_heist_police.ytyp" \ --position 442.42960000,-985.06700000,29.88529000 \ --rotation 0,0,0,1 ``` ### Response #### Success Response (Output Folder Structure) ``` police_station\ ├── police_station.original.ytyp (backup) ├── main_room.ymap ├── office.ymap ├── garage.ymap ``` ``` -------------------------------- ### Extract MLO Entities Source: https://context7.com/gizzdev/gtautil/llms.txt Extracts specific MLO entities from a ytyp file into a ymap format. ```powershell gtautil extractentities \ --name "apartment" \ --ytyp "C:\MyMod\mp_apartments.ytyp" \ --position 100.5,200.3,50.0 \ --rotation 0,0,0,1 \ --mloname "apa_stilt_a" ``` -------------------------------- ### Prefix Ymap Entities Source: https://context7.com/gizzdev/gtautil/llms.txt Modifies entity archetype names in ymaps by adding prefixes or performing string replacements to avoid conflicts. ```powershell # Add prefix to entity names gtautil prefixymap \ --input "C:\MyMod\maps\*.ymap" \ --output "C:\MyMod\prefixed" \ --prefix "mymod_" # Replace specific strings gtautil prefixymap \ --input "C:\MyMod\maps\*.ymap" \ --output "C:\MyMod\replaced" \ --prefix "v2_" \ --replace "v1_,v2_" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.