> 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/game-mechanics/shop-meta-file.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Shop Meta File

Learn about GTA V's Cloth Shop Meta File

## Introduction

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-bdfd65374a2acae4dec8b3cd8a11a03c99d83ca6%2Fshop-meta-poster.webp?alt=media" alt="The Forced and Variant Items window of the hoodie Male 16 top, texture variation b, with the hat Male 9 hat added on the Forced props list and the project items to pick from on the right."><figcaption><p>Forced and variant items are part of the shop metadata of a clothing item.</p></figcaption></figure>

{% embed url="<https://gta.clothing/assets/media/v4/shop-meta-mobile.mp4?v=dedfb9d751a2>" %}
Choose restriction tags and a shop on the Shop Meta tab, set a cost for all textures and add a forced item.
{% endembed %}

The **Shop Meta File** is a component in GTA V's clothing system. These files store metadata about clothing items and their related properties, enabling the game to use certain mechanics, such as retrieving clothing names and IDs at runtime or retrieving restriction information for some systems like cloth fitting, during gameplay. Shop Meta Files are typically named in a format like `mp_f_freemode_01_fancyclothes_shop.meta`.

## Overview

A Shop Meta File is an XML document that contains detailed information about clothing items, including their associated DLC, character type, and component data. These files allow the game to manage and apply metadata to clothing, such as:

* Identifying specific clothing items for a character.
* Assigning clothing items to specific shops or categories.
* Defining restrictions or special mechanics for the items.
* Configuring cost, forced components, and other properties.

Here’s an example snippet from a Shop Meta File:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<ShopPedApparel>
	<pedName>mp_f_freemode_01</pedName>
	<dlcName>fancyclothes</dlcName>
	<fullDlcName>mp_f_freemode_01_fancyclothes</fullDlcName>
	<eCharacter>SCR_CHAR_MULTIPLAYER_F</eCharacter>
	<creatureMetaData>MP_CreatureMetadata_fancyclothes</creatureMetaData>
	<pedOutfits>
	</pedOutfits>
	<pedComponents>
        	<!-- Accessories: Accessories_000 -->
		<Item>
			<lockHash>CU_DCT_FANCYCLOTHES_CLOTHES</lockHash>
			<cost value="0"/>
			<textLabel />
			<uniqueNameHash>CLO_DCT_ACCESSORIES_0_0_F</uniqueNameHash>
			<eShopEnum>CLO_SHOP_NONE</eShopEnum>
			<locate value="-99" />
			<scriptSaveData value="0" />
			<restrictionTags>
			</restrictionTags>
            		<forcedComponents />
            		<variantComponents />
			<drawableIndex value="0" />
			<localDrawableIndex value="0" />
			<eCompType>PV_COMP_TEEF</eCompType>
			<textureIndex value="0" />
			<isInOutfit value="false" />
		</Item>
	</pedComponents>
	<pedProps>
	</pedProps>
</ShopPedApparel>

```

## Key Elements of a Shop Meta File

### 1. **Ped Name**

The character model the file is associated with, e.g., `mp_f_freemode_01` for female multiplayer freemode.

### 2. **DLC Name**

Specifies the DLC that the clothing belongs to, e.g., `fancyclothes`.

### 3. **Components**

Defines the individual clothing items and their properties. Each `<Item>` tag represents one piece of clothing with the following attributes:

* **lockHash**: A unique identifier for the clothing item, used internally by the game.
* **drawableIndex**: Durty Cloth Tool generates this field with the value `0`.
* **localDrawableIndex**: The drawable's collection-local position generated by Durty Cloth Tool.
* **textureIndex**: Index of the clothing texture variation.
* **eCompType**: The clothing component type (e.g., `PV_COMP_TEEF` for accessories). (See [Drawable Types & Textures](https://docs.gta.clothing/game-mechanics/drawable-types-and-textures.md))
* **restrictionTags**: Tags that apply restrictions or special mechanics to the clothing item. (See this [dump of restriction tags](https://github.com/DurtyFree/gta-v-data-dumps/blob/master/pedApparelRestrictionTags.json) used by the game)
* **eShopEnum**: Target shop category for the item.
* **textLabel**: The name of the text label for the item. Durty Cloth Tool leaves it empty unless you give the item a shop label, see [#shop-labels](#shop-labels "mention").

{% hint style="warning" %}
Global component and prop IDs can change with title builds and collection load order. Runtime integrations should store the collection name together with the local drawable or prop ID, and use collection-based APIs where available. The same distinction applies to prop entries generated with `localPropIndex` and a `propIndex` value of `0`.
{% endhint %}

### 4. **Creature Metadata**

Specifies any associated metadata files that are required for special mechanics like high heels or hair expression data.

## Prices, forced and variant items

The **Shop Meta** tab on a drawable configures what the shop does with it.

* **Price**, with **per texture overrides** when a variation should cost something different.
* The four **forced and variant item lists**: components and props that are forced on, or offered as variants, per texture variation.

Select a single texture variation and choose **Edit forced / variant items...** under **Forced & variant items** on the **Shop Meta** tab to open the **Forced and Variant Items** window. Its heading names the clothing item, with the slot, gender, texture variation and texture file under it. One line says what forced and variant items do; how the game and servers use the lists is behind the information icon beside it (**How the game reads these lists**). The four lists are tabs: the open one is underlined, and a list with entries shows how many it holds. Pick an item under **Pick from this project** and choose **Add selected**, or press **Enter** or double-click it; **Add manual entry** adds a row for a base game item, with **Name hash**, **Index** and **Slot**. **Remove** on a row deletes that entry. **Close** or **Esc** closes the window.

Project references follow their targets when you reorder or rename items, base game entries can be entered manually, and a completed setup can be copied to every texture variation of the drawable.

{% hint style="warning" %}
Singleplayer shops read the generated metadata directly. **Multiplayer targets need a script that consumes it**, so prices and forced items do nothing on their own on a FiveM server.
{% endhint %}

To set these across many items at once, see [Bulk Metadata Editing](https://docs.gta.clothing/basics/good-to-know/bulk-metadata-editing.md).

## Shop labels

A shop label fills the `textLabel` of a drawable's shop entries. Without one, the build writes an empty `<textLabel />`.

* **Item Details > Shop Meta > Shop label**: **Label for every texture variation** sets the drawable's label. With one texture variation selected, **Label for the selected variation** gives that variation a label of its own; leave it empty to use the drawable's label. A label is saved when you press **Enter** or leave the box.
* **Bulk edit metadata** sets the drawable's label on many items at once with **Set shop label**. Leaving the field empty removes the label; a variation's own label stays. See [Bulk Metadata Editing](https://docs.gta.clothing/basics/good-to-know/bulk-metadata-editing.md).
* **CTRL + Z** takes a label change back, also a bulk edit.

A label is the name of a text label, such as `CLO_MYPACK_U_1_0`, not the text players read. It can use the letters A to Z, digits and underscores, up to 64 characters. DCT saves a label only when it is valid exactly as you typed it: otherwise the reason shows under the field and the item keeps its previous label. Text with a space is refused, not trimmed, in Item Details and in bulk edit. The game's own clothing labels use upper case letters, digits and underscores.

{% hint style="warning" %}
The shop meta only stores the label's name. The text shown for it must come from the game or from your server; Durty Cloth Tool does not add it. Test your labels in game before you rely on them.
{% endhint %}

* Labels are saved with the project and travel with their item in DCT packages. **Add from built resource** reads the labels of a resource back.
* A labelled item counts as carrying shop data, so a build that lists only the items with shop data keeps it.
* Custom ped clothing built as addon clothing keeps the label of the collection it came from while you leave its label empty. A label you enter replaces it.

## Entry budget

The game keeps the shop entries of every loaded clothing pack, including its own DLCs, in one **65,520 entry** list. The entry that goes past it corrupts the list, and clients can die while loading the resource that happened to cross the line.

DCT reports what a build spends against the measured base game usage of the selected game build, warns from half the remaining room, and asks before going over. A build option controls whether the shop meta lists every item, only the items carrying shop data, or none at all. Generated shop names can carry the collection name, so two packs on one server stop answering each other's lookups.

See [Game Limits and Crashes](https://docs.gta.clothing/game-mechanics/game-limits-and-crashes.md) for the per build figures.

## Durty Cloth Tool Integration

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-39dc220b1e13bf1457c727df12ee5dfa497b9c43%2Fimage.png?alt=media" alt="The Shop meta tab of Male 16 top with texture variation b selected: Restriction tags AIR_DRAW_0 and AIR_DRAW_2, Shop Low Price Shop, Drawable cost 250, Texture cost override with Clear override and Apply to all textures, Forced &#x26; variant items with Edit forced / variant items, and the Shop label fields."><figcaption><p>Editing Clothing Related Shop Meta information</p></figcaption></figure>

### Automatic Shop Meta File Generation

Durty Cloth Tool simplifies the process of creating and managing Shop Meta Files:

* **Automatic Generation**: The tool automatically generates Shop Meta Files during the build process, ensuring compatibility with in-game mechanics.
* **Customization Options**: Users can configure specific fields, such as "Target Shop", "Restriction Tags" or the shop label, via the **Shop Meta** tab in the tool.

## Use Cases in Game Mechanics

Shop Meta Files are used by the game for various mechanics, including:

* **Clothing Names & Ids**: Retrieving the proper names or drawable ids of clothing items.
* **Shop Categories**: Assigning items to specific shops in the game.
* **Restrictions**: Applying limitations based on gameplay context, such as item visibility or availability.

For example:

* A big mask might include restriction tags to ensure it can only be worn with specific outfits.
* High-heeled shoes could reference specific creature metadata for proper functionality.

## Managing Shop Meta Files in Durty Cloth Tool

To work with Shop Meta Files in Durty Cloth Tool:

1. Navigate to the **Shop Meta** tab for any selected clothing item.
2. Edit properties like the **Target Shop** or **Restriction Tags** as needed.
3. Build the project to automatically generate the Shop Meta File, ensuring all configured settings are applied.

## Summary

By leveraging the Shop Meta File system, you can ensure your clothing resources integrate seamlessly with the game’s mechanics.
