# Events

{% hint style="info" %}
You need at least one track available otherwise you won't be able to create an event.
{% endhint %}

{% tabs %}
{% tab title="Create Event" %}

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FcxsEmlIDzcqCkfr78bMU%2F%7B22C7B959-7526-4A02-A0A1-0D871F9099F1%7D.png?alt=media&#x26;token=e212e5e6-296a-47a1-bef8-7030df072f06" alt=""><figcaption></figcaption></figure>

> * **Event Title\*:** How people will see the event in the Home tab and in Discord.
> * **Password:** Optional password, only people with the password can access the event, view checkpoints, etc.
> * **Starts in\*:** Time before the event starts (in minutes).
> * **Buy-in\*:** Amount needed to join the race.
> * **Money Account\*:** Account used to pay the entry and prizes.
> * **Laps\*:** Amount of laps needed to complete the race, 0 is drag.
> * **Vehicle Class\*:** Allowed vehicles for this event.
> * **Phasing:** Leaving it blank is off, you can set to 30/60seconds or the full race. Phasing removes collision between racers vehicles, it also increase the CPU usage for racers during the event.
> * **Event Type\*:** A tag that describes your event better and can be used to filter who can see the event in the home page.
> * **Description:** A brief description for your event.
> * **Crew Only:** Only active crews can join the event.
> * **Reversed:** If enabled, the route is reversed: the last checkpoint becomes the starting line, and you race to the original beginning.
> * **Ranked**: Only available if the track checkpoints is equal or higher than *Config.MinCheckpoints* `(server/editable/_elo.lua)`&#x20;

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2Fj4JMKFk0c3ggRj5McITE%2Fimage.png?alt=media&#x26;token=8bd4c460-7b0b-40a8-9383-7fd824900163" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2F2xx49ghSp6wcw0la7MRx%2Fimage.png?alt=media&#x26;token=f5ed182a-a452-4318-8d62-addf2504cafd" alt=""><figcaption><p>screenshot from the discord channel used for events</p></figcaption></figure>

{% hint style="warning" %}
The **Starts** field in Discord will be displayed in your local time and language, timer will be updated automatically.
{% endhint %}
{% endtab %}

{% tab title="Event Controls" %}

> Every event in the Home Tab will show the following control buttons:
>
> * **Join Event \[all]:** Even when you are the admin you still need to join the event (optional).
> * **Check In** **\[racers only]**: Check in is needed to render the checkpoints and the Race UI, you can only use this button when at the starting point.
> * **Set GPS \[all]:** Display the route from your current location to the starting point of the event.
> * **Details \[all]:** It will show all the event details.
> * **Chat \[racers only]:** Send a message to all registered participants.
> * **Start Race \[host only]:** Start the race, make sure everyone are inside their vehicles and checked in or they will be removed from the event.
> * **Delete \[host only]:** Delete the event, refund racers money and remove everyone from it.

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FEfG9I0Wxvkz8Mlfu9oKV%2F%7BABC22437-9A47-486E-96CA-8BE08B07BBB0%7D.png?alt=media&#x26;token=b51c9868-edad-4d76-9a66-2db95cc1bc6f" alt=""><figcaption><p>General view</p></figcaption></figure>

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2Fc3K3aNdfLFNX6OdowLSh%2F%7BE99D5ABB-BD3D-4239-9EF9-D697A296F352%7D.png?alt=media&#x26;token=e3d50d78-3389-4f1c-90c0-81f5dc11abf1" alt=""><figcaption><p>Participant view</p></figcaption></figure>
{% endtab %}

{% tab title="Extra Prizes" %}

> You can configure Bonus Prizes for top racers in `av_racing/server/editable/_xp.lua`. This allows you to award extra currency independent of the main race pot.
>
> * `minRacersForExtraPrize`: Minimum participants required to activate rewards (prevents farming).
> * `prizePositions`: Defines the rank, amount, and currency type for winners.
>   {% endtab %}
>   {% endtabs %}
