> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_clothing/rcore_clothes/blacklist-whitelist.md).

# 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
    }
},
```
