An Outfit contains one or more outfit Variations that a Ped can have.
The idea of an Outfit is that it can be used as a more generic representation of what a Ped should wear. Instead of having an outfit that is a "LSPD Sergeant Patrol Uniform", you could instead have a more generic "LSPD Patrol Uniform", which could define the basics of the uniform (e.g. pants, shirt, equipment, etc.) then have "Sergeant" as a variation, which could simply be a different shirt texture.
When giving a ped an outfit, a random variation of the outfit that is compatible with the Ped's gender will be selected. If you wish instead to use a specific variation, do so like this:
<Ped outfit="lspd_cop.f_sergeant">mp_f_freemode_01</Ped>
An example of assigning a specific outfit variation to a Ped. In this case, "lspd_cop" is the ScriptName of the Outfit, and "f_sergeant" is the ScriptName of the Variation.
Elements
| Element Name | Type | Required | Description |
|---|---|---|---|
| Name | Text | Yes | The name of the outfit, e.g. "LSPD Patrol Uniform" |
| ScriptName | Text | Yes | This is a unique identifier for this outfit, which is used to cross-reference it in code and other data. |
| Variations | - | Yes | A container of one or more Variation elements. |
Example
<Outfit> <Name>The Cop</Name> <ScriptName>lspd_cop</ScriptName> <Variations> <Variation> <Name>Officer</Name> <ScriptName>m_base</ScriptName> <Gender>male</Gender> <Components> <Component id="1" drawable="0" texture="0" /> <Component id="3" drawable="0" texture="0" /> <Component id="4" drawable="35" texture="0" /> <Component id="5" drawable="0" texture="0" /> <Component id="6" drawable="25" texture="0" /> <Component id="7" drawable="0" texture="0" /> <Component id="8" drawable="58" texture="0" /> <Component id="9" drawable="0" texture="0" /> <Component id="10" drawable="0" texture="0" /> <Component id="11" drawable="55" texture="0" /> </Components> </Variation> </Variations> </Outfit>
Recommended Comments