I've seen a question about how to startup GTA V with your character in his/her preferred/custom outfit asked a few times and I'll suggest one way to do this without installing any other script mods. I wasn't trying to do this, but was working on something similar, so I thought I would share the learning. It does require a simple script and Menyoo will make it much easier. I hope it can be used for the purpose above as well.
- Create your character outfit in Menyoo's Wardrobe.
- Save the outfit (it will be an xml file in the Menyoo Stuff, Outfits Folder.
- Open the xml file in a text editor.
- All your parameters will be in the xml file. Use these parameters to populate native functions.
- Run the script from a key and your character will spawn in your selected outfit.
- From Menyoo, Object Spooner, F9, steal Peds soul to become that Ped
In the XML file, your parameters will look like this. This isn't a complete list but covers the major changes. For a complete list of functions, go here:
https://alloc8or.re/gta5/nativedb/
Examples:
-
Props such as glasses and watches, helmets, etc. will be identified by the following tags:
<PedProps>
<_0>-1,-1</_0>
<_1>20,0</_1>
<_2>-1,-1</_2>
<_3>-1,-1</_3>
<_4>-1,-1</_4>
<_5>-1,-1</_5>
<_6>25,0</_6>
<_7>0,0</_7>
<_8>-1,-1</_8>
<_9>-1,-1</_9>
-
Ped parameters/components such as hair, face, torso, clothes, legs, etc, like this:
<PedComps>
<_0>18,0</_0>
<_1>0,0</_1>
<_2>10,0</_2>
<_3>131,0</_3>
<_4>133,0</_4>
<_5>6,1</_5>
<_6>19,0</_6>
<_7>8,0</_7>
<_8>10,0</_8>
<_9>0,0</_9>
<_10>6,0</_10>
<_11>225,0</_11>
</PedComps>
-
Other tags may include hair color, facial features etc. To keep it simple here are some examples.
<ShapeAndSkinTone>
<ShapeFatherId>25</ShapeFatherId>
<ShapeMotherId>18</ShapeMotherId>
<ShapeOverrideId>0</ShapeOverrideId>
<ToneFatherId>25</ToneFatherId>
<ToneMotherId>18</ToneMotherId>
<ToneOverrideId>0</ToneOverrideId>
<ShapeVal>0.0954999998</ShapeVal>
<ToneVal>0.289999992</ToneVal>
<OverrideVal>0</OverrideVal>
<IsP>1</IsP>
</ShapeAndSkinTone>
<HairColour>4</HairColour>
<HairColourStreaks>0</HairColourStreaks>
<EyeColour>1</EyeColour>
Finally, to put it all together, here are examples of the functions you will use. These are from working VB.NET code, syntax for C# is similar I"m sure, just missing the ; to terminate function.
In the "component variation" function below, the first integer (from 1 to 11) is the component, the next 2 values come from your xml file, the last integer is left as 2.
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 0, 18, 0, 2) 'FACE
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 1, 0, 0, 2) 'BEARD OR MASK
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 2, 10, 0, 2) 'HAIR
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 3, 131, 0, 2) 'SHIRT/TORSO
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 4, 133, 0, 2) 'LEGS/PANTS
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 5, 6, 1, 2) 'HANDS GLOVES
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 6, 19, 0, 2) 'SHOES
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 7, 8, 0, 2) 'EYES
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 8, 10, 0, 2) 'ACCESSORIES
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 9, 0, 0, 2) 'TASKS OR IS IT REALLY MASKS??
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 10, 6, 0, 2) 'TEXTURES
Native.Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Ped1, 11, 225, 0, 2) 'TORSO2
Native.Function.Call(Hash.SET_PED_HEAD_BLEND_DATA, Ped1, 25, 18, 0, 25, 18, 0, 0.095499F, 0.29F, 0.0F, 1)
Native.Function.Call(Hash._SET_PED_HAIR_COLOR, Ped1, 4, 0) 'Additional Hair
Native.Function.Call(Hash._SET_PED_EYE_COLOR, Ped1, 1, 0) 'Additional Eye
Native.Function.Call(Hash.SET_PED_PROP_INDEX, Ped1, 1, 20, 0, 1) 'Glasses
Native.Function.Call(Hash.SET_PED_PROP_INDEX, Ped1, 6, 25, 0, 1) 'Watch
That's it. Holler if anything is unclear.
BTW, I think the documentation is wrong when it says component 9 is "Tasks", I have a feeling they meant "Masks". I don't use 9.