> 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/basics/essential-knowledge/cutting-hairs.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Cutting Hairs

Learn about our 'Cut Hairs' Feature

## Introduction

The "Cutting Hairs" feature in Durty Cloth Tool is designed to support GTA V’s game mechanics for managing hair visibility and cutting when head props (such as hats, helmets) or comp clothes (such as masks) are applied. This feature allows users to control hair clipping and display behavior, preventing glitches where hair clips through props or masks. There are two different approaches that the game uses depending on the type of item:

* **Comp Clothes (e.g., masks):** These rely on alternate hair models that fit the item.
* **Head Props (e.g., hats):** These utilize expression flags that dynamically adjust the hair model.

This article will cover the different options provided within Durty Cloth Tool for controlling hair behavior, focusing on how this feature is implemented for both head props and comp clothes.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-e9b46c3388900e14c68a6c9072859926c80a9a5f%2Fcut-hairs-options.webp?alt=media" alt="Animation: Item Details of the head prop Male 9 hat beside the 3D Preview. Under Hair options, Cut hairs shortens the hair under the bandana and Remove hairs hides it, after it started on Show hairs."><figcaption><p>Hair options of a head prop: Show hairs, Cut hairs and Remove hairs on the ped</p></figcaption></figure>

## **How the Hair Cutting System Works**

### **Comp Clothes (Masks) - Alternation Models**

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-2c4ec7764109e39e32f8abef6cead12b4d882de7%2Fhair-options-glasses.png?alt=media" alt="Item Details of glasses in the Mask slot with Hair options set to Show hairs; the other choices are Cut hairs and Remove hairs."><figcaption><p>Hair options on an item in the Mask slot: Show hairs, Cut hairs and Remove hairs.</p></figcaption></figure>

* **Show Hairs:** Default behavior. No hair cutting occurs; the full hair model remains visible.
* **Cut hairs:** For alternate hair models, this setting uses predefined models (often smaller) that fit under masks to prevent clipping.
* **Remove hairs:** Completely hides the hair model by loading no hair or the smallest hair model available.

{% hint style="info" %}
For singleplayer, alt:V and RageMP, the game handles a limited number of hair swaps per mask, top or undershirt. Your masks set to **Cut hairs** or **Remove hairs**, and your tops and undershirts set to **Hoodie hairs**, swap your own hairs in list order until that limit is reached (cutting and hoods only swap hairs that have a cut or hood model), and the build log names the first hair that keeps its model. The 3D Preview shows the same result. The game's own masks and hooded tops leave your hairs as they are on these targets. On FiveM every hair is swapped.
{% endhint %}

### **Head Props (Hats) - Ped Expression Flags**

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-737c0e91002e9d2a1c743f2e26dba6b7d98d3259%2Fhair-options-hat.png?alt=media" alt="Item Details of a hat with Hair options set to Show hairs, the choices Cut hairs, Remove hairs and Custom cut hairs, and Cut amount below them."><figcaption><p>Hair options on a hat: Custom cut hairs unlocks Cut amount.</p></figcaption></figure>

* **Show Hairs:** This is the default behavior. No hair cutting takes place.
* **Cut hairs:** With head props, cutting hairs can happen by dynamically adjusting the hair model. The system uses weighted values that control how much of the hair is cut.
  * The hair cutting amount for head props is a dynamic value ranging from `0` (no cut) to `-1` (strongest cut). This value is a tuning control rather than a guaranteed percentage of visible hair removed.
* **Remove hairs:** Uses DCT's strongest hair-cut value. The visible result depends on how the selected hair was authored.

{% hint style="warning" %}
**For addon hair styles this only works with properly weighted hairs**, which most clothing content creators don't do. The game shrinks hair under a hat by scaling two dedicated bones, `MH_Hair_Scale` and `MH_Hair_Crown`, so only the parts of the hair that are weighted to those bones move. Cloth Analysis points out a hair without such weights as **Hair cannot be cut by hats** (information). See [Rigging and Weight Painting](https://docs.gta.clothing/cloth-modding/rigging-and-weight-painting.md#hair-that-hats-can-cut) for how to weight a hair for this.
{% endhint %}

**Remove hairs** and **Custom cut hairs** generate their required hair settings even when no other head prop uses **Cut hairs**.

### It doesn't work, hairs don't get cut

* Have you **tested with GTA basegame hair styles after drawable id 36**? Hairs before drawable id 36 got patched and are not working with things like the ped expression flags.
* **Is it an addon hair?** If yes, most likely the content creator didn't weight the hair to `MH_Hair_Scale` and `MH_Hair_Crown`. Most hair creators don't do this. Check the hair in Cloth Analysis (the **Hair cannot be cut by hats** note) and get in contact with the cloth creator, or add the weights yourself as described in [Rigging and Weight Painting](https://docs.gta.clothing/cloth-modding/rigging-and-weight-painting.md#hair-that-hats-can-cut).

#### **Custom Cut Hairs for Head Props**

For head props such as hats, you can also use the **Custom cut hairs** feature. This allows you to fine-tune the hair cut amount with more precision. By entering a value between `0` and `-1`, you can control how much of the hair remains visible when the head prop is worn. This feature gives you the flexibility to adjust hair visibility in small increments.

* **Cut Amount:** Enter a value between `0` and `-1` to fine-tune the hair cut. DCT uses `-0.5` for **Cut hairs** and `-1` for **Remove hairs**, but these values are not guaranteed percentages.

## Set the hair cut automatically

Click **Auto** next to a hat's **Cut Amount**, or right-click one or more hats and choose **Auto configure hair cut** (or press **Ctrl+K** and paste `>Auto configure hair`). Durty Cloth Tool sets a cut that suits the hat, or **Remove hairs** when no cut fits. New hats get the same setting when you add them; you can turn this off with **Configure high heels and hat hair cuts automatically when adding clothes** under **Project Settings > Behaviour** (or press **Ctrl+K** and paste `@Automatic high`).

{% hint style="info" %}
This needs a GTA V installation, because the original hairs are read from your game; without one the option is disabled and explains why. One hat at a time is free, and so is the setup of new hats as you add them; several selected at once need Ultimate, and [Bulk edit metadata](https://docs.gta.clothing/basics/good-to-know/bulk-metadata-editing.md) offers the same as **Fit the hair cut to each hat**.
{% endhint %}

The automatic cut judges the original GTA V hairs only, so check your addon hairs in the 3D Preview and in game.

## **Real-time 3D Preview**

Any changes made to the hair cutting options can be live previewed in Durty Cloth Tool’s 3D previewer. Whether adjusting the cut amount or switching between different options, the preview window will immediately reflect your changes, allowing you to see how the hair behaves with the selected head prop or comp cloth.

The base-game hats you can select from the preview's clothes list cut hair too: their hair-scale amount is read from the game data, so a custom hair can be tested under the vanilla caps and helmets without importing them into the project.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-1567baeddb8eef26b80b1ea96d165617ecd8e5c4%2Fcut-hairs-custom-amount.webp?alt=media" alt="Animation: Custom cut hairs is chosen for the head prop Male 9 hat, and the Cut amount is stepped down and up again while the 3D Preview shows the hair under the bandana."><figcaption><p>Custom cut hairs: set the Cut amount and check the hair in the 3D Preview</p></figcaption></figure>

To see whether a hair can be cut at all, choose **Advanced > Render mode > Bone weights** in the 3D Preview while the hair is focused: orange is `MH_Hair_Scale`, the bone a cut-hair hat shrinks, cyan `MH_Hair_Crown` and green the head. A hair that shows no orange is weighted to the head only and keeps its full length under every hat; Cloth Analysis reports it as an informational finding. See [3D Preview](https://docs.gta.clothing/basics/essential-knowledge/3d-preview-clothes.md#render-mode).

## Let Durty Cloth Tool make a hair cuttable

If Cloth Analysis notes **Hair cannot be cut by hats**, click **Fix** on the finding, or right-click any hair and choose **Make hair cuttable...** (or press **Ctrl+K** and paste `>Make hair cuttable`), an Ultimate tool. The tool gives the hair weight on the two hair bones, `MH_Hair_Scale` and `MH_Hair_Crown`, so hats can shrink it, while the roots stay on the head. Nothing else in the model changes, and the stored file gets a Project History restore point.

The dialog opens the 3D Preview on the hair in the **Bone weights** mode, puts a base-game cap that cuts hair on the ped, and updates the hair live as you change the values, so you can see how much of the hair the cap will shrink before you apply; untick the bone weight colouring in the dialog to judge it on the ordinary shading. The repair is applied to the main model and to the first-person and alternation models, because under a hat that cuts hair the game wears the alternation model. The preview returns to what it showed before when you close the dialog.

The dialog has two settings:

* **Strength**: how much of the head weight moves at most. 1.00 matches the original game hair; a lower value keeps more length under a hat.
* **Reach (m)**: the distance from the crown at which the hair bones start taking over. 0.10 m suits most hair; raise it for a tight cut, lower it for hair that should shrink from the scalp.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-5a484271f297f5896e3ec582e2fe444a7d91bf14%2Fcutting-hairs-bone-weights.png?alt=media" alt="The Make hair cuttable dialog for one hair with Strength 1.00, Reach (m) 0.10 and the bone weight colouring turned on, next to the 3D Preview in Bone weights mode: the hair is orange over the top of the head and green at the sides above the ears."><figcaption><p>Make hair cuttable with Strength 1.00 and Reach 0.10. Orange is the hair that a hat with a hair cut shrinks, green stays on the head.</p></figcaption></figure>

From the context menu the repair also runs on a hair that already has some hair-bone weight, so you can strengthen an existing rig.

Check the result in the 3D Preview with **Advanced > Render mode > Bone weights** and by wearing a hat with a hair cut.

{% hint style="warning" %}
A hair whose model carries its own skeleton without the two hair bones is refused and needs a re-export.
{% endhint %}

## **Example of Hair Cutting Options**

1. **Mask Example:**
   * In the "Mask" drawable section, you can select whether hairs are shown, cut, or removed entirely. Comp masks typically rely on alternate hair models that must be defined separately for each mask.
2. **Hat Example (Head Prop):**
   * In the "Head Prop" drawable section, you can use the **Custom cut hairs** feature to adjust the cut amount with precision. This option relies on ped expression flags to determine how much of the hair is removed. The real-time preview updates to reflect the current value you input.

## **Summary**

* **Show Hairs:** No changes to the hair model, full hair is visible.
* **Cut hairs:** Cuts a portion of the hair to prevent clipping.
* **Remove hairs:** Uses the strongest hair-cut option; the visible result depends on the selected hair model.
* **Custom cut hairs:** Allows precise control over the amount of hair removed when wearing head props (range from `0` to `-1`).

The ability to live preview hair changes and adjust the cut amount makes it easy to create items that don’t suffer from hair clipping issues and ensures your clothing models work smoothly with a wide range of hairstyles in the game.

This powerful feature enables users to effectively manage the way hair behaves with different clothing items, ensuring compatibility and preventing visual glitches.
