# Custom Skins

## Add New Skins

To add a new skin, follow these steps.

***

### Step 1 - Create Texture

Create a seamless weapon texture.

Recommended:

```txt
1024x1024
2048x2048
```

***

### Step 2 - Create .ytd

Import your texture into OpenIV and create a `.ytd` file.

Requirements:

```txt
Texture name: diffuse
Format: DXT5
Mipmaps: enabled
```

***

### Step 3 - Put File Into Stream

Place your file here:

```txt
stream/skin_newskin.ytd
```

Important:

* The file name becomes the skin identifier

Example:

```txt
skin_newskin
```

***

### Step 4 - Add to Config

Open:

```txt
config.lua
```

Add inside:

```lua
Config.Skins = {
}
```

Example:

```lua
["skin_newskin"] = {
    label = "New Skin",
    price = 500,
    rarity = "legendary",
    description = "Description here",
    allowedCategories = {"pistol", "smg", "rifle", "shotgun", "sniper"}
},
```

***

### Field Explanation

#### label

```lua
label = "New Skin"
```

#### price

```lua
price = 500
```

#### rarity

```lua
rarity = "legendary"
```

Options:

```txt
common
rare
epic
legendary
mythic
```

#### description

```lua
description = "Description here"
```

#### allowedCategories

```lua
allowedCategories = {"pistol", "smg", "rifle"}
```

***

### Full Example

```lua
["skin_obsidian"] = {
    label = "Obsidian Black",
    price = 650,
    rarity = "epic",
    description = "Dark polished obsidian finish",
    allowedCategories = {"pistol", "smg", "rifle", "shotgun"}
},
```

***

### Important

Make sure:

```txt
- .ytd file name matches config skin key
- texture inside .ytd is named diffuse
- category list is correct
```

Example match:

```txt
stream file: skin_obsidian.ytd
config key: ["skin_obsidian"]
texture name inside ytd: diffuse
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/gameplay/weapon-skins/custom-skins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
