An ASI script to generate a GXT label lookup for every drawable texture for every MP Ped Component in GTA V.
This script generates a JSON file containing GXT labels for all drawables of every ped component of an online character.
For lack of better ideas, the button to trigger the dump is F (or whatever the "Enter Vehicle" control is). This creates a clothingdump.json
file in your game's directory.
The schema is as follows:
/* This is the JSON root */
interface IClothingDump {
"mp_f_freemode_01": PedClothing;
"mp_m_freemode_01": PedClothing;
}
type PedClothing = Record<PedComponent, ComponentDrawables>;
type ComponentDrawables = Record<number, DrawableTextures>;
type DrawableTextures = Record<number, GxtLabel>;
type GxtLabel = string;
type PedComponent = |
"head" |
"beard" |
"hair" |
"upper" |
"lower" |
"hands" |
"feet" |
"teeth" |
"accessories" |
"armour" |
"badge" |
"torso";
The latest dump should be available in the dist/
directory of this repo.
- Download ScriptHookV and place
dinput8.dll
andScriptHookV.dll
in your GTAV directory. - Download the latest compiled dumper script from the Releases page and place GTAVClothingDumper.asi in your GTAV directory.
- Launch GTAV
- Load into story mode
- Once spawned in, press F.
- Your character will change to the online character. There should now be a
clothingdump.json
file in your GTAV directory.
- Download the ScriptHookV SDK.
- Extract the SDK to a folder and set an environment variable named
SCRIPTHOOKV_SDK
pointing to the extracted folder. - Clone this repo.
- Open the solution in Visual Studio 2022
- Build
- Copy the ASI from
bin/Release
and place it in your GTAV directory.
Big thanks to Alexander Blade for ScriptHookV and root-cause (GitHub) for the PedComponent struct layout.