Cutting Hairs
Learn about our 'Cut Hairs' Feature
Last updated
Learn about our 'Cut Hairs' Feature
Last updated
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.
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.
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
(full cut). This system allows fine-tuning of how much of the hair is removed when the prop is equipped.
Remove Hairs: This removes the hair completely, either cutting it 100% or not loading the model entirely.
For addon hair styles this only works with properly weighted hairs, which most clothing content creators don't do.
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 properly weight paint the hairs. Most hair creators don't do this. Get in contact with the cloth creator in this case.
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. For example, -0.5
cuts the hair by 50%, while -1
cuts it entirely.
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.
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.
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.
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: Completely removes the hair, either by cutting it 100% or not loading the 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.