> 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_casino/features/editor/inside-track.md).

# Inside Track

Managing Inside Track in the Casino Editor

The Inside Track editor page manages horse betting terminals, layout, limits, and big-screen setup.

<div data-full-width="false"><figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-4a569ca8109d2e91aa6be8aaca25cf7a28ba98b1%2Fcapt_it.png?alt=media" alt=""><figcaption></figcaption></figure></div>

### Editor Settings

<table data-full-width="false"><thead><tr><th width="260">Setting</th><th>Info</th></tr></thead><tbody><tr><td>Name</td><td>Display name of the Inside Track.</td></tr><tr><td>Manage Chairs &#x26; Props</td><td>Opens the list of chairs and desks. More in <a href="#chair-settings">Chair Settings</a>.</td></tr><tr><td>Regenerate Layout</td><td>Builds the chairs and desks again from Columns, Rows, Layout Type and Padding X and Y. Layout Type sets which columns get 2-seat and which 4-seat desks. Every change deletes all chairs of this Inside Track, including the ones you placed by hand.</td></tr><tr><td>Move All Chairs</td><td>Move or rotate all chairs together with the gizmo.</td></tr><tr><td>Enable Society</td><td>Whether bets and winnings go through a society account.</td></tr><tr><td>Society Name</td><td>Which society account it uses.</td></tr><tr><td>Proximity</td><td>Distance in meters at which the Inside Track loads for players.</td></tr><tr><td>Load Only Inside Interiors</td><td>Load the Inside Track only while the player is inside an interior.</td></tr><tr><td>Delete</td><td>Delete the Inside Track.</td></tr><tr><td>Add Inside Track</td><td>Create a new Inside Track with a default set of chairs and desks. It is in the list of Inside Tracks, not inside one.</td></tr></tbody></table>

### Local Game and Main Event

Open an Inside Track and click Local Game or Main Event. Local Game is the race a player plays alone at a chair, Main Event is the shared race on the big screen.

<table data-full-width="false"><thead><tr><th width="260">Setting</th><th>Info</th></tr></thead><tbody><tr><td>Enabled</td><td><em>Main Event only.</em> Turns the Main Event on or off.</td></tr><tr><td>Min Players</td><td><em>Main Event only.</em> How many players have to be near the Inside Track before a Main Event starts.</td></tr><tr><td>Starting Soon Time</td><td><em>Main Event only.</em> Countdown before betting opens, in seconds.</td></tr><tr><td>Betting Time</td><td><em>Main Event only.</em> How long players can place bets, in seconds.</td></tr><tr><td>Race Duration</td><td>How long the race runs, in seconds.</td></tr><tr><td>Min Bet, Max Bet</td><td>Smallest and largest bet.</td></tr><tr><td>Win Chance</td><td>How often the race is left alone, <code>100</code> means always. More in <a href="#win-chance">Win chance</a>.</td></tr><tr><td>Cooldown</td><td>How long a player has to wait after a bet before they can bet again.</td></tr><tr><td>Main Horse Odds, Local Horse Odds</td><td>Which horses can appear in the race. More in <a href="#horse-odds-bands">Horse odds bands</a>.</td></tr><tr><td>Set From Actual Camera</td><td><em>Main Event only.</em> Saves the editor camera as the camera players watch the Main Event from.</td></tr></tbody></table>

### Big Screen

Open an Inside Track and click Big Screen, or click the big screen in the world.

<table data-full-width="false"><thead><tr><th width="260">Setting</th><th>Info</th></tr></thead><tbody><tr><td>Create Object</td><td>The script spawns the screen model. Turn it off when the screen is already part of the map.</td></tr><tr><td>Model</td><td>Model of the screen, <code>vw_vwint01_betting_screen</code> in the Diamond Casino.</td></tr><tr><td>Render Target</td><td>Texture on the model the race is drawn on, <code>casinoscreen_02</code> in the Diamond Casino.</td></tr><tr><td>Fit Render Target</td><td>Scale the race to fit the render target.</td></tr><tr><td>Square X, Square Y, Square Width, Square Height</td><td>Where on the render target the race is drawn.</td></tr></tbody></table>

### Chair Settings

Open an Inside Track, click Manage Chairs & Props and pick a chair. You can also click a chair in the world. Add Chair or prop and Copy from Existing Entity are in the list of chairs, not inside a chair.

<table data-full-width="false"><thead><tr><th width="260">Setting</th><th>Info</th></tr></thead><tbody><tr><td>Enterable</td><td>Players can sit at it. Turn it off for desks and other props.</td></tr><tr><td>Has Screen</td><td>The chair gets its own little screen.</td></tr><tr><td>Chair Model</td><td>Model from <a href="#horsegamingchairmodels">HorseGamingChairModels</a>. <code>-</code> spawns nothing, for chairs that are already part of the map.</td></tr><tr><td>Change Display Offset, Reset Display Offset</td><td>Move the chair's screen with the gizmo, or put it back where it was generated.</td></tr><tr><td>Delete Chair</td><td>Delete the chair. For a prop the button says Delete Prop.</td></tr><tr><td>Add Chair or prop</td><td>Place a new chair in front of the camera.</td></tr><tr><td>Copy from Existing Entity</td><td>Turn chairs that are already in the map into Inside Track chairs. Tick them and click Create chairs from selected.</td></tr></tbody></table>

## Horse odds bands

A race always fields 6 horses, picked from three odds bands. Each band contributes 2 horses:

<table data-full-width="false"><thead><tr><th width="200">Band</th><th>Horses</th><th>Role</th></tr></thead><tbody><tr><td>Favorites</td><td>2</td><td>Low odds: small payouts, the safe picks</td></tr><tr><td>Middle of the Pack</td><td>2</td><td>Mid odds</td></tr><tr><td>Outliers</td><td>2</td><td>High odds: big payouts, the long shots</td></tr></tbody></table>

Each band has a From and To value, and the editor shows a live Matching Horses count of how many horses in the game fall inside that range.

{% hint style="warning" %}
Every band needs at least 2 matching horses or the editor warns *"Not enough horses. Each group needs at least 2 horses."* A group with a misconfigured band refuses bets rather than running a race it cannot fill.
{% endhint %}

In the config the three bands are stored as one flat list of six numbers, `{fromA, toA, fromB, toB, fromC, toC}`:

<table data-full-width="false"><thead><tr><th>Band</th><th width="170">List positions</th><th>Default</th></tr></thead><tbody><tr><td>Favorites</td><td>1st and 2nd</td><td>2 to 5</td></tr><tr><td>Middle of the Pack</td><td>3rd and 4th</td><td>6 to 15</td></tr><tr><td>Outliers</td><td>5th and 6th</td><td>16 to 30</td></tr></tbody></table>

Odds set both the payout and the win chance. A long-odds horse pays more precisely because it comes in less often. Widening a band spreads the prices further apart; it does not change what the room makes, which is `InsideTrackTargetRtp`.

## Win chance

`MainEventWinChance` and `LocalRaceWinChance` are a brake on race results, expressed as a percentage. In both cases the value is the chance the race is left alone, and the two modes apply it differently. Both default to `100`. The house edge comes from `InsideTrackTargetRtp`, not from these.

<table data-full-width="false"><thead><tr><th width="180">Setting</th><th>When it applies</th><th>What happens on failure</th></tr></thead><tbody><tr><td><code>MainEventWinChance</code></td><td>Once per race, before results are processed, regardless of what anyone bet.</td><td>The horse that would pay the room the least is promoted to first place.</td></tr><tr><td><code>LocalRaceWinChance</code></td><td>Per bet, and only when the player's horse already won.</td><td>The top two horses are swapped, so that player loses instead.</td></tr></tbody></table>

`LocalRaceWinChance` only ever takes a win away. `MainEventWinChance` can also hand the win to the horse that costs the room least, which may have a bet on it. So:

* `100` (default): the race resolves purely on the horse lottery, no interference.
* `50`: about half of the time the house steps in.
* `0`: the local race never pays out, and the Main Event always lands on its cheapest result.

Leave both at `100`. More on the house edge in [Payback](https://documentation.rcore.cz/paid-resources/rcore_casino/config-reference/tweaking-games/inside-track.md#payback).

## HorseGamingChairModels

Inside Track chair models are defined in `configs/games/insidetrack.lua` in the `HorseGamingChairModels` list.

Only models in `HorseGamingChairModels` can be mapped/treated as horse gaming chairs, and only those models can be selected when creating new Inside Track chairs in the editor.

<table data-full-width="false"><thead><tr><th width="127">Model Preview</th><th>Model Name</th></tr></thead><tbody><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-41adc1375ef555f6beb01a761a45f51d027521dc%2Fvw_prop_casino_track_chair_01.png?alt=media" alt=""></td><td><code>vw_prop_casino_track_chair_01</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-310926890daabb361deec5aeb70db38928eee04b%2Frcore_casino_it_desks_two.jpg?alt=media" alt=""></td><td><code>rcore_casino_it_desks_two</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-6e09db371199754ff8d657cf7bb6c43229c0e0bc%2Frcore_casino_it_desks_four.jpg?alt=media" alt=""></td><td><code>rcore_casino_it_desks_four</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-04c3bf8f8ccac774e49bce17cfe2196a577da865%2Frcore_casino_it_desks_two_panel.jpg?alt=media" alt=""></td><td><code>rcore_casino_it_desks_two_panel</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-50e8f1dceccb56be5a29935bd7c2fe2e0a691558%2Frcore_casino_it_desks_four_panel.jpg?alt=media" alt=""></td><td><code>rcore_casino_it_desks_four_panel</code></td></tr></tbody></table>

## Little Screen (Chair Monitor)

Little chair screens are not edited directly in the Inside Track editor. Their position/rotation is auto-generated from each chair position + heading (using display offsets), and they follow chair updates.

Only the built-in little screen models are used in the resource.

<table data-full-width="false"><thead><tr><th width="127">Model Preview</th><th>Model Name</th></tr></thead><tbody><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-ff4338a529c624ff02de848211ee433360b658db%2Frcore_it_little_screen.png?alt=media" alt=""></td><td><code>rcore_it_little_screen</code></td></tr></tbody></table>
