A ped model is made up of a number of Components, each representing a different body part or accessory.
There are 12 ped component slots in Grand Theft Auto V, numbered 0 thru 11 which can be used. A component consists of a drawable and a texture, with a drawable being the actual model and a texture being the texture applied to the drawable. A drawable can have multiple textures, and a component can have multiple drawables although only one can be active at any time.
To more easily understand how this system works, consider the following XML:
<Component id="4" drawable="1" texture="0" />
In this case, 4 is the number of the component slot, 1 is the number of the active drawable in that slot and 0 is the number of the texture to be applied to the drawable. Of course, the visual appearance of the above code will be different for each ped model, but the underlying result is the same - the second drawable in slot 4, with the first texture for that drawable. To give some context to this, consider a ped model with two different types of pants that can be worn. The first is a pair of leggings available in blue, black and red, and the second is a pair of running shorts available in pink and red. In this case, the running shorts in pink would be used.
Attributes
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| id | Number | Yes | The component number (0 thru 11) |
| drawable | Number | Yes | The number of the drawable. |
| texture | Number | Yes | The number of the texture. |
List of Components
| Component | Name | Description (note that usage varies for different ped models) |
|---|---|---|
| 0 | head | Head models. |
| 1 | berd | Beards and masks. |
| 2 | hair | Hair models. |
| 3 | uppr | Upper body models. |
| 4 | lowr | Lower body models. |
| 5 | hand | Hands and arms. |
| 6 | feet | Shoes and feet. |
| 7 | teef | Accessories. |
| 8 | accs | Miscellaneous clothing parts and accessories. |
| 9 | task | Gear and equipment. |
| 10 | decl | Overlays like text and emblems. |
| 11 | jbib | Miscellaneous accessories and alternative upper body models. |
Example
<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>
An example of values for the ped model "mp_m_freemode_01" to achieve the police uniform.
Additional Information
The following lists may be helpful:
- List of ped models and components: https://ragepluginhook.net/PedModels.aspx
- 'Freemode Character' clothes: https://wiki.rage.mp/index.php?title=Clothes
Recommended Comments