> For the complete documentation index, see [llms.txt](https://docs.gta.clothing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gta.clothing/custom-addon-peds/create-a-custom-ped-resource.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Create a Custom Ped Resource

Set up a complete custom addon ped, add compatible clothes and build a FiveM or Singleplayer resource

Use this workflow to create a new spawnable **custom addon ped**: a ped model with its own skeleton and clothes that you build as a FiveM or Singleplayer resource. For clothing that targets a ped that already exists in the game, use [Add or Replace Custom Ped Clothes](https://docs.gta.clothing/custom-addon-peds/add-or-replace-custom-ped-clothes.md). New to custom peds? Read [Custom Peds](https://docs.gta.clothing/custom-addon-peds/custom-peds.md) first.

{% hint style="info" %}
Made a human character yourself that has no GTA skeleton yet? **Custom Ped** in the Blender add-on rigs it from an installed ped of your game (rigging needs Ultimate) and creates the custom ped project for you. Then continue here from [#id-3.-set-the-clothes-and-default-appearance](#id-3.-set-the-clothes-and-default-appearance "mention"). See [Custom Ped](https://docs.gta.clothing/plugins/creator-link/blender/custom-ped.md).
{% endhint %}

{% hint style="warning" %}
Custom ped projects require an active **Advanced or Ultimate license**. Features with their own higher license requirement, such as the Ultimate tools, keep that requirement.

Projects and item packages saved by this version cannot be opened by older Durty Cloth Tool builds, so keep a copy of the original project before you convert it or share it with someone on an older build.
{% endhint %}

## 1. Prepare the source

Start with a complete ped resource or authored files: **YFT**, **YMT**, **YDD**, **YTD** and **peds.meta**. Use assets you have permission to distribute.

* Keep the model, skeleton, textures and required metadata together.
* Supported XML equivalents can be imported with their referenced texture files.
* An encrypted model cannot be used as an editable source.

Read [Custom Peds](https://docs.gta.clothing/custom-addon-peds/custom-peds.md) if you are unsure which files or layout your ped uses. A skeleton alone is not a complete ped.

## 2. Set up the project

For an empty **MP Freemode** project, you can select a complete custom ped resource directly with **Add from file(s)** or **Add from folder(s)**. DCT offers **Configure custom addon ped**, then shows the import review. **Cancel import** or cancelling the review leaves the project unchanged. This offer is available when the project has no appearance items, body presets, existing ped setup or freemode-only integrations. Select one ped at a time; incomplete sources need the missing setup before they can be imported.

1. Create a project. You can choose its ped before saving.
2. Open **Project Settings > Ped & Body**, then select **Custom ped**.
3. Choose **Custom Addon Ped**. No source name or folder is needed here; you choose the output model name later in **Build Project**.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-987cacb5cc8f92574a38adda868bf25c06ac2fc1%2Fcustom-ped-addon-ped.png?alt=media" alt="Project Settings, Ped &#x26; Body with Custom ped selected, Custom Addon Ped as the ped source with its help text, and Behaviour metadata set to use the metadata included with the files."><figcaption><p>Custom ped with Custom Addon Ped as the ped source.</p></figcaption></figure>

4. Use **Add from file(s)** or **Add from folder(s)** to select your resource or authored ped files. DCT finds the model the source declares and imports its skeleton, metadata and clothes together. If the resource contains several peds, select one ped's folder inside `stream` or its `peds.meta` file. DCT finds that ped's matching files elsewhere in the resource. Create a separate project for each ped.
5. Review the import and add it to the project. For the first import, the complete ped setup is kept together. You can edit or remove clothing items afterward.
6. Save the project when you are ready to choose its permanent location. A name already entered in General settings is reused.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-ac872fa01f464b666a8b4367dcd8f07cc9ed5732%2Fcustom-ped-import-review.png?alt=media" alt="The Add from built resource review for the FiveM resource reveler_ped: under Clothing collections the ped ig_reveler with 27 components, 1 prop and 52 textures, Missing files: 5 models with the note that these entries are left out, Skeleton and ped metadata included with 1 companion file, the total of 23 drawables and 52 textures with 5 entries left out, and Set up the ped and Cancel."><figcaption><p>The import review of a custom ped resource: the ped, its clothes and setup files, and the entries it leaves out, before you choose Set up the ped.</p></figcaption></figure>

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-84775e8cbfc9ba9e73ace640b5aee1cfe7e9d26c%2Fcustom-addon-peds-poster.webp?alt=media" alt="Add a custom ped resource to a custom ped project: review the import, choose Set up the ped, then preview a mask from its clothes on the ped."><figcaption><p>Add a custom ped resource: review the import, choose Set up the ped, then preview its clothes on the ped.</p></figcaption></figure>

{% embed url="<https://gta.clothing/assets/media/v4/custom-addon-peds-mobile.mp4?v=56a86aaae874>" %}
Add a custom ped resource to an empty project: choose Configure custom addon ped, review the import, then see its clothes on the ped.
{% endembed %}

{% hint style="info" %}
Clothing and setup files are stored with the project. Project cleanup keeps the skeleton, metadata and referenced dependencies even when you remove clothing items.
{% endhint %}

### Behaviour metadata

If your authored files have no `peds.meta`, choose settings copied from a game ped under **Behaviour metadata** before you add the files:

1. Open the searchable list of installed peds. Common installed models appear first.
2. Select a model that is compatible with your skeleton and intended behavior, and wait for validation.
3. Apply the metadata, then add the authored files.

{% hint style="warning" %}
DCT rejects a game template when its known skeleton differs from your ped. A template can also load and still be unsuitable: a human template does not fit a bird or a quadruped.
{% endhint %}

A new streamed setup without a variation YMT can use standard component and prop file names to establish its initial clothes.

* **Ped type** lets you search the game's fixed categories and read what each one means. The category does not supply a job, mission or player control by itself.
* **Movement clip set** controls walking and running. Search the sets used by peds in your installed game, or enter a custom set your resource supplies. Its animations must match your skeleton.
* **Advanced model metadata (peds.meta)** opens an XML editor with syntax highlighting and undo. The apply button appears when metadata has changed. References in that metadata must resolve to compatible assets.

To write your own definition, choose **Edit my own metadata XML**. DCT starts with the saved settings or an available compatible game template. Edit the `peds.meta` definition and select **Verify and save**. Invalid XML stays in the editor so you can correct it. Saving checks the definition; building also checks the required files and compatibility. If no suitable starter is available, paste a definition made for your ped.

{% hint style="info" %}
Changing the target of a populated project creates a reviewed copy. Choose a new directory, review any source-gender selection and incompatibilities, and keep the original until you have checked the result. **Recover source as a new project** restores the retained source when needed.
{% endhint %}

## 3. Set the clothes and default appearance

Imported body components become normal project clothing items. Select their textures under **Default appearance** in **Ped & Body** to choose the intended starting outfit.

Add clothing with the normal import commands:

* Each model must be authored for the target skeleton and assigned to a supported component slot or prop anchor.
* Slot labels include the engine identifier, such as `uppr` or `p_eyes`. Review the identifier as well as the label.
* The component and prop categories and the available slots follow the selected ped. A slot that is empty can still be supported.

Supported extra component models appear as **Alternate model 1**, **2** and **3**. They are not automatically hair or first-person models.

* Add alternates in order, without gaps.
* To use one in first person, choose its number under **First-person alternate**. Zero keeps the normal model.

Use the ordinary editing, ordering, texture, material and optimization tools where they are available. Cloth physics and other supported metadata remain available.

Items in a custom ped project all belong to its selected model, so item gender controls are hidden.

{% hint style="warning" %}
Freemode body presets, body fitting, the freemode rig repairs and settings the ped does not support are hidden in custom ped projects. Custom ped projects do not use dummy items, because a resource that contains one can crash the game. Opening an older project removes its dummies once; save the project to keep that change. Entries without a model or texture file are left out when you import, and later clothing of the same slot moves up one place, so its number drops by one.
{% endhint %}

## 4. Preview and resolve findings

Open **3D Preview** to check the clothes on the project ped. The project skeleton is used for the preview.

1. The preview starts from the project default appearance, then applies temporary selections and the items you explicitly wear.
2. Check missing textures, prop attachment, visible clipping and supported animation playback.
3. Choose **Save as my default** on the **Outfit** tab to save the current project clothing and props, including worn items, as the project's default appearance. Restore unloaded component slots before saving; props may remain empty.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-745d9edba003198756ff7716659a2fb36da43582%2Fcustom-ped-preview-ped-tab.png?alt=media" alt="The Preview tools Outfit tab with the worn clothes, Reset to default and Save as my default, beside the 3D Preview showing a custom addon ped with grey hair and a black face covering, wearing a black hoodie."><figcaption><p>A custom addon ped wearing a hoodie in the 3D Preview, with Save as my default on the Outfit tab.</p></figcaption></figure>

The Error List and **Warnings and Validations** settings show the findings that apply to this ped. Missing target assets produce a finding; DCT does not substitute a freemode body. See [Review and Tune Project Findings](https://docs.gta.clothing/how-to-guides/review-and-tune-project-findings.md).

Thumbnail generation and visual exports use the same ped. Custom ped file names can include the model, collection and local index. See [Thumbnails & Visual Exports](https://docs.gta.clothing/basics/good-to-know/thumbnails-and-exports.md).

{% hint style="info" %}
The Thumbnail Generator and the export tools keep their **Ultimate** requirement in custom ped projects.
{% endhint %}

## 5. Build and install

1. Open **Build Project** (or press **Ctrl+K** and paste `>Build project`) and choose **FiveM** or **Singleplayer**. [Build Options](https://docs.gta.clothing/basics/essential-knowledge/build-options.md) explains the other settings.
2. Enter a unique **Target model name**. This is the name you use to spawn the new ped. Changing it keeps the selected source rig and clothes.
3. Select a dedicated output folder, then build.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-fee057f9e9ac400268ccec907f593e09f75faf89%2Fcustom-ped-build.png?alt=media" alt="Build Project for a new addon ped on the Output tab: a dedicated build output folder named build (path blurred) and the Target model name my_reveler. The Build overview shows Target FiveM Legacy, Mode New addon ped, Content 23 drawables, the same destination and one resource, revelerped, with 23 drawables."><figcaption><p>Build Project for a new addon ped: the Target model name is my_reveler, the output goes to a dedicated build folder, and the build makes one resource.</p></figcaption></figure>

{% hint style="danger" %}
A build replaces its output folder. Keep your editable source and unrelated files elsewhere.
{% endhint %}

DCT generates the ped's skeleton, clothing, variation and model metadata with the required layout and registrations.

* Keep the generated names and folders intact, including `ped-appearance.json` when importing the resource back into DCT. It retains your default outfit.
* Streamed clothing may be split into additional resources; keep all generated parts together.
* Packed dictionaries stay together and cannot be split arbitrarily.

### FiveM

Copy the generated resource folders into your server resources and start their required dependencies. Start every generated part before using the clothes. Spawn the **Target model name**, not the clothing collection name.

To apply the configured default appearance to an existing ped from a client script, call the generated resource's export after its resources have started:

```lua
local applied = exports['your_generated_resource']:ApplyDefaultAppearance(ped)
```

Replace `your_generated_resource` with the generated resource name. `ped` must be an entity using the target model. The helper returns `false` for a different model or an unavailable required part. Your spawning or clothing script decides when to call it; it does not change every spawned ped automatically.

### Singleplayer

Install the generated DLC with the usual addon-DLC setup and register it in the game's DLC list. The generated `ped-appearance.json` records your chosen default outfit for a script or trainer integration. The FiveM Lua export is not a Singleplayer script.

{% hint style="warning" %}
Test spawning, default and random appearances, component and prop changes, animation, ragdoll and LODs in your intended game edition. Test cloth physics and first-person behavior where they apply. A correct file build cannot prove how every authored rig behaves in the game.
{% endhint %}

## If something is missing

* **Missing skeleton or texture:** include the referenced files when importing the complete ped setup. Do not replace the skeleton with a convenient freemode one.
* **Missing alternate model:** add the missing file, or use the clear button beside **Alternate model 1**, **2** or **3** to remove that alternate deliberately. Clear also works when the field is already empty.
  * Clearing disables the clothing switches and first-person selection that use that alternate, while keeping the normal model and other alternates.
  * Selecting a replacement file restores its clothing switches; choose the first-person alternate separately if needed.
  * Remove later alternates too if clearing an earlier one would leave a gap.
  * **History** can restore the earlier setup while its files remain available. A missing file in an imported resource is not automatically treated as a deliberate removal.
* **Unresolved dependency:** supply the matching asset or choose compatible behavior metadata. Installed game references do not require a separate ped resource.
* **Incompatible rig:** edit the clothing against the target rig in your authoring tool. Renaming files does not retarget bones. For a ped made from your own character, [Rig to this ped's body](https://docs.gta.clothing/plugins/creator-link/blender/custom-ped.md#rig-clothes-to-your-peds-body) can give the clothes its bone weights.
* **Unsupported option:** keep the imported content for recovery, then remove or change the active setting named by the build finding.
* **Cloning a freemode base ped fails on missing clothing rules:** the base clothes can reference clothes in separate DLC collections. A new model cannot use those references unless the required clothes and rules are included, so DCT refuses the incomplete clone. Use an MP Freemode project for the normal freemode clothing workflow.
* **Model spawns but the outfit is wrong:** confirm the spawned model, loaded resource parts, collection names and local indices. Check whether your framework immediately applies its own appearance afterward.

## See also

* [Custom Peds](https://docs.gta.clothing/custom-addon-peds/custom-peds.md)
* [Custom Ped](https://docs.gta.clothing/plugins/creator-link/blender/custom-ped.md) in Blender
* [Add or Replace Custom Ped Clothes](https://docs.gta.clothing/custom-addon-peds/add-or-replace-custom-ped-clothes.md)
* [Build Options](https://docs.gta.clothing/basics/essential-knowledge/build-options.md)
