# Clothes blacklist / Whitelist

Our clothes system contains option for you to disable specific clothes or only allow some of them and you can do that for section or with global blacklist/whitelist for every section with same name

{% hint style="danger" %}
Section blacklist/whitelist has priority upon global one.
{% endhint %}

### Blacklist example in component:

Blacklist pants\_1 1,2,3 value for everyone

```lua
pants = {
    pos = vector3(430.58, -800.13, 29.5),
    label = '👖',
    title = "Pants shop!",
    help = 'Press ~INPUT_CONTEXT~ to open shop menu',
    components = {
        {
            label = 'Pants',
            name = 'pants_1',
            from = 1,
            to = 160,
            current = 1,
            reset = {
                'pants_2'
            },
            price = 50,
            blacklist = {
                1, 2, 3
            }
        },
        {
            label = 'Pants color',
            name = 'pants_2',
            from = 0,
            to = 20,
            current = 1,
            price = 10,
        },
    },
    cam = {
        offset = {
            x = 0.0,
            y = 1.0,
            z = -0.5
        },
        pointOffset = {
            x = 0,
            y = 0,
            z = -0.4
        },
        taskHeading = 86.66
    }
},
```

### Blacklist example for specific gender

Blacklist for male pants 1,2,3 and for female 10,11,12

```lua
pants = {
    pos = vector3(430.58, -800.13, 29.5),
    label = '👖',
    title = "Pants shop!",
    help = 'Press ~INPUT_CONTEXT~ to open shop menu',
    components = {
        {
            label = 'Pants',
            name = 'pants_1',
            from = 1,
            to = 160,
            current = 1,
            reset = {
                'pants_2'
            },
            price = 50,
            blacklist = {
                ['male'] = {
                    1, 2, 3
                },
                ['female'] = {
                    10, 11, 12
                }
            }
        },
        {
            label = 'Pants color',
            name = 'pants_2',
            from = 0,
            to = 20,
            current = 1,
            price = 10,
        },
    },
    cam = {
        offset = {
            x = 0.0,
            y = 1.0,
            z = -0.5
        },
        pointOffset = {
            x = 0,
            y = 0,
            z = -0.4
        },
        taskHeading = 86.66
    }
},
```

### Whitelist example

Whitelist can be used same way as blacklist here example with sex specify

```lua
pants = {
    pos = vector3(430.58, -800.13, 29.5),
    label = '👖',
    title = "Pants shop!",
    help = 'Press ~INPUT_CONTEXT~ to open shop menu',
    components = {
        {
            label = 'Pants',
            name = 'pants_1',
            from = 1,
            to = 160,
            current = 1,
            reset = {
                'pants_2'
            },
            price = 50,
            whitelist = {
                ['male'] = {
                    1, 2, 3
                },
                ['female'] = {
                    10, 11, 12
                }
            }
        },
        {
            label = 'Pants color',
            name = 'pants_2',
            from = 0,
            to = 20,
            current = 1,
            price = 10,
        },
    },
    cam = {
        offset = {
            x = 0.0,
            y = 1.0,
            z = -0.5
        },
        pointOffset = {
            x = 0,
            y = 0,
            z = -0.4
        },
        taskHeading = 86.66
    }
},
```


---

# 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://documentation.rcore.cz/paid-resources/rcore_clothing/rcore_clothes/blacklist-whitelist.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.
