# Blackjack

The **Blackjack** editor page manages blackjack table placement, presets, dealer model, and access rules.

<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-cf303e22d771f8f644ab88f2c98b50265a05abc9%2Fcapt_blackjack.png?alt=media" alt=""><figcaption></figcaption></figure></div>

### Editor Settings

<table data-full-width="false"><thead><tr><th>Setting</th><th>Type</th><th>Info</th></tr></thead><tbody><tr><td>Name</td><td>Text</td><td>Choose a display name for the blackjack table</td></tr><tr><td>Table model</td><td>Select/List</td><td>Select the blackjack table model/hash</td></tr><tr><td>Preset</td><td>Select/List</td><td>Select gameplay preset/config used by this table</td></tr><tr><td>Dealer ped model</td><td>Select/List</td><td>Choose dealer NPC model used for this table</td></tr><tr><td>VIP only</td><td>Toggle</td><td>Restrict table usage to VIP players only</td></tr><tr><td>Ambient</td><td>Toggle</td><td>Mark table as ambient/background mode</td></tr><tr><td>Society enabled</td><td>Toggle</td><td>Enable society/account integration for table revenue</td></tr><tr><td>Society name</td><td>Text/List</td><td>Set society/account name used when society is enabled</td></tr><tr><td>Proximity</td><td>Number</td><td>Set interaction distance in meters</td></tr><tr><td>Load only interiors</td><td>Toggle</td><td>Load this blackjack table only while players are in interiors</td></tr><tr><td>Create table</td><td>Action</td><td>Create a new blackjack table at player position</td></tr><tr><td>Delete table</td><td>Action</td><td>Delete selected blackjack table</td></tr></tbody></table>

## BlackjackConfigs

Blackjack presets are defined in `rcore_casino/configs/blackjack.lua` in the `BlackjackConfigs` table.

The editor **Preset** field selects one of these preset keys.

<table data-full-width="false"><thead><tr><th>Config field</th><th>Type</th><th>Info</th></tr></thead><tbody><tr><td><code>TextureID</code></td><td>Number</td><td>Table texture/style variant id</td></tr><tr><td><code>Banner</code></td><td>Text</td><td>UI/banner texture dictionary key</td></tr><tr><td><code>Title</code></td><td>Text</td><td>Title displayed for this blackjack preset</td></tr><tr><td><code>PlaceBetsTime</code></td><td>Number</td><td>Betting phase time in seconds</td></tr><tr><td><code>MinBetValue</code></td><td>Number</td><td>Minimum bet value</td></tr><tr><td><code>MaxBetValue</code></td><td>Number</td><td>Maximum bet value</td></tr><tr><td><code>RTP</code></td><td>Object</td><td>Return-to-player tuning range and bias</td></tr><tr><td><code>ExposureBias</code></td><td>List</td><td>Bias tuning by threshold bands</td></tr><tr><td><code>PlayerControls</code></td><td>Object</td><td>Win cap / streak / anti-streak controls</td></tr><tr><td><code>FairnessWindows</code></td><td>Object</td><td>Unbiased vs biased round windows</td></tr><tr><td><code>DealerOutcomeWeights</code></td><td>Object</td><td>Baseline dealer outcome weighting</td></tr></tbody></table>

## BlackjackPlayableHashes

Playable blackjack models are defined in `rcore_casino/configs/blackjack.lua` in `BlackjackPlayableHashes`.

Only models listed in `BlackjackPlayableHashes` are treated as playable blackjack tables and are used for editor table-model selection/create defaults.

<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-b8445702afeeb73ba3401a3f54325c40c2ffd16b%2Fvw_prop_casino_blckjack_01.png?alt=media" alt=""></td><td><code>vw_prop_casino_blckjack_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-d69cdd9ae468980fb73e2d467645db182f58544f%2Fvw_prop_casino_blckjack_01b.png?alt=media" alt=""></td><td><code>vw_prop_casino_blckjack_01b</code></td></tr></tbody></table>

## BlackjackPedModels

Selectable dealer ped models are defined by blackjack defaults in `rcore_casino/configs/blackjack.lua` (`BlackjackSettings`).

Only configured/default blackjack dealer models should be used for blackjack dealer peds.

```lua
BlackjackPedModels = {"S_M_Y_Casino_01", "S_F_Y_Casino_01", "ADD_YOUR_PED_HERE"}
```

## Ambient Blackjack Tables

The **Ambient** toggle in editor controls whether a blackjack table is treated as an ambient/background table (`isAmbient = true`).

<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-64fb352e5405127c860f6a12c14182e3f1273bfe%2Fblackjack_ambient.png?alt=media" alt=""><figcaption></figcaption></figure></div>

Ambient blackjack tables are useful for atmosphere and population-style behavior around tables, instead of only active gameplay-focused setups.

Ambient spectator/nearby ped models are configured in `rcore_casino/configs/blackjack.lua` in the `BlackjackAmbientPeds` list.

```lua
BlackjackAmbientPeds = {"a_f_m_bevhills_01", "a_m_m_bevhills_01", "a_m_m_fatlatin_01", "ADD_YOUR_MODEL_HERE"}
```
