# Categories

In av\_racing/config/\_categories.lua you will find a table named **Config.TracksCategories**.

> Defines the categories used for filtering and event creation. Each entry requires a `canUse` function returning a boolean.
>
> * If `true`, the user has full access to the category.
> * If `false`, all associated tracks and events are hidden.

***Default Setup:*** The provided example restricts categories 1-3 (illegal races) from police players, while the 4th category is visible only to police.

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FqN9AqdSSbKU26RXHydt0%2F%7B64C4CE27-3AF8-45EA-ACA9-A8E45BA76812%7D.png?alt=media&#x26;token=857aa345-3df4-4271-b56d-b7114b20bfe9" alt=""><figcaption></figcaption></figure>
