A Ped is a representation of a non-player-character (NPC). A number of attributes are available to define specific variations.
Attributes
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| chance | Number | No | The chance that this ped will be selected in favor of another. This is a normalized chance, meaning that if each chance attribute for each ped is added up, the total should always be 100. If one ped has a chance of 70, and another has a chance of 30, it means that there is a 70% chance that the first ped will be selected instead of the second. |
| outfit | Outfit | No | Used to specify which Outfit the ped should wear. |
| inventory | Inventory | No | Used to specify which Inventory the ped should have (will override the agency setting). |
| randomizeProps | True/False | No | If set to true, the ped's props will be randomly selected by the game. |
| comp_ | Number | No | See below. |
| prop_ | Number | No | See below. |
| clipset Added in 0.4.6 | Text | No | Can be used to specify an animation clipset to be used for the ped's walking style. |
Comp_ attributes
The following attributes can be used to achieve complete control over the ped's Component (e.g. tops, bottoms, shoes, etc.) variations. Note that this will override any Components set by an Outfit.
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| comp_head | Number | No | Sets the drawable of the head component (id 0) |
| comp_tex_head | Number | No | Sets the texture of the above drawable. |
| comp_berd | Number | No | Sets the drawable of the berd component (id 1) |
| comp_tex_berd | Number | No | Sets the texture of the above drawable. |
| comp_hair | Number | No | Sets the drawable of the hair component (id 1) |
| comp_tex_hair | Number | No | Sets the texture of the above drawable. |
| comp_uppr | Number | No | Sets the drawable of the uppr component (id 1) |
| comp_tex_uppr | Number | No | Sets the texture of the above drawable. |
| comp_lowr | Number | No | Sets the drawable of the lowr component (id 1) |
| comp_tex_lowr | Number | No | Sets the texture of the above drawable. |
| comp_hand | Number | No | Sets the drawable of the hand component (id 1) |
| comp_tex_hand | Number | No | Sets the texture of the above drawable. |
| comp_feet | Number | No | Sets the drawable of the feet component (id 1) |
| comp_tex_feet | Number | No | Sets the texture of the above drawable. |
| comp_teef | Number | No | Sets the drawable of the teef component (id 1) |
| comp_tex_teef | Number | No | Sets the texture of the above drawable. |
| comp_accs | Number | No | Sets the drawable of the accs component (id 1) |
| comp_tex_accs | Number | No | Sets the texture of the above drawable. |
| comp_task | Number | No | Sets the drawable of the task component (id 1) |
| comp_tex_task | Number | No | Sets the texture of the above drawable. |
| comp_decl | Number | No | Sets the drawable of the decl component (id 1) |
| comp_tex_decl | Number | No | Sets the texture of the above drawable. |
| comp_jbib | Number | No | Sets the drawable of the jbib component (id 1) |
| comp_tex_jbib | Number | No | Sets the texture of the above drawable. |
Prop_ attributes
The following attributes can be used to achieve complete control over the ped's prop (e.g. helmets, glasses, etc.) variations:
Note that this will override any Props set by an Outfit.
| Attribute Name | Type | Required | Description |
|---|---|---|---|
| prop_head | Number | No | Sets the drawable of the head prop (id 0) |
| prop_tex_head | Number | No | Sets the texture of the above drawable. |
| prop_eyes | Number | No | Sets the drawable of the eyes prop (id 2) |
| prop_tex_eyes | Number | No | Sets the texture of the above drawable. |
| prop_ears | Number | No | Sets the drawable of the ears component (id 1) |
| prop_tex_ears | Number | No | Sets the texture of the above drawable. |
| prop_lwrist | Number | No | Sets the drawable of the lwrist prop (id 6) |
| prop_tex_lwrist | Number | No | Sets the texture of the above drawable. |
| prop_rwrist | Number | No | Sets the drawable of the rwrist prop (id 7) |
| prop_tex_rwrist | Number | No | Sets the texture of the above drawable. |
Example
<Ped comp_head="2" comp_uppr="0" tex_uppr="2" comp_accs="2" comp_task="1" randomizeProps="false" prop_eyes="2">s_m_y_cop_01</Ped>
A basic example of a Ped element, which spawns a specific variation (black, with short sleeves and sunglasses) of s_m_y_cop_01 (the male LSPD officer).
Additional Information
The following lists may be helpful:
- List of ped models and components: https://ragepluginhook.net/PedModels.aspx
- 'Freemode Character' clothes: https://wiki.gt-mp.net/index.php/Character_Components
Edited by Sam
Recommended Comments