> 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/blackjack.md).

# Blackjack

Managing Blackjack in the Casino Editor

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>Info</th></tr></thead><tbody><tr><td>Table Name</td><td>Choose a display name for the blackjack table</td></tr><tr><td>Table Model</td><td>Select the blackjack table model/hash</td></tr><tr><td>Preset</td><td>Select gameplay preset/config used by this table</td></tr><tr><td>Ped Model</td><td>Choose dealer NPC model used for this table</td></tr><tr><td>Variation</td><td>Choose how this dealer looks. Variation 1 keeps the model default.</td></tr><tr><td>VIP Only</td><td>Restrict table usage to VIP players only</td></tr><tr><td>Ambient</td><td>Mark table as ambient/background mode</td></tr><tr><td>Enable Society</td><td>Enable society/account integration for table revenue</td></tr><tr><td>Society Name</td><td>Set society/account name used when society is enabled</td></tr><tr><td>Proximity</td><td>Set interaction distance in meters</td></tr><tr><td>Load Only Inside Interiors</td><td>Load this blackjack table only while players are in interiors</td></tr><tr><td>Change Position</td><td>Move this table with the gizmo</td></tr><tr><td>Change Rotation</td><td>Rotate this table with the gizmo</td></tr><tr><td>Spawn Table</td><td>Cycle to Blackjack, then select to spawn a table at your position</td></tr><tr><td>Delete Table</td><td>Delete selected blackjack table</td></tr></tbody></table>

## BlackjackConfigs

Blackjack presets are defined in `configs/games/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>Info</th></tr></thead><tbody><tr><td><code>TextureID</code></td><td>Table texture/style variant id</td></tr><tr><td><code>Title</code></td><td>Title displayed for this blackjack preset</td></tr><tr><td><code>PlaceBetsTime</code></td><td>Betting phase time in seconds</td></tr><tr><td><code>MinBetValue</code></td><td>Minimum bet value</td></tr><tr><td><code>MaxBetValue</code></td><td>Maximum bet value</td></tr><tr><td><code>RTP</code></td><td>Rolling return-to-player guardrail. More in <a href="https://documentation.rcore.cz/paid-resources/rcore_casino/config-reference/tweaking-games/blackjack.md#house-edge-and-fairness">House edge and fairness</a>.</td></tr><tr><td><code>ExposureBias</code></td><td>Raises bias when this round is about to pay out a lot. More in <a href="https://documentation.rcore.cz/paid-resources/rcore_casino/config-reference/tweaking-games/blackjack.md#house-edge-and-fairness">House edge and fairness</a></td></tr><tr><td><code>PlayerControls</code></td><td>Raises bias against players who are far ahead or on a win streak</td></tr><tr><td><code>FairnessWindows</code></td><td>Alternating guaranteed-fair and bias-eligible windows</td></tr><tr><td><code>DealerOutcomeWeights</code></td><td>How often the dealer lands blackjack / 21 / 17-20 / bust</td></tr></tbody></table>

## BlackjackPlayableHashes

Playable blackjack models are defined in `configs/games/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><th>Default preset</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><td><code>normalstakes</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><td><code>highstakes</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-b8445702afeeb73ba3401a3f54325c40c2ffd16b%2Fvw_prop_casino_blckjack_01.png?alt=media" alt=""></td><td><code>ch_prop_casino_blackjack_01a</code></td><td><code>normalstakes</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>ch_prop_casino_blackjack_01b</code></td><td><code>normalstakes</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-4bee0e3efb880ffe6e98e40623d712113d1d77ad%2Fjurasic_blackjack.jpg?alt=media" alt=""></td><td><code>-1351267304</code></td><td><code>normalstakes</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-eea75d2d47e0a55e482a0b9da5953b9268244989%2Fh4_prop_casino_blckjack_01a.jpg?alt=media" alt=""></td><td><code>h4_prop_casino_blckjack_01a</code></td><td><code>normalstakes</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-a1835278bc6076ede8ca8fed3c962121855fedff%2Fh4_prop_casino_blckjack_01b.jpg?alt=media" alt=""></td><td><code>h4_prop_casino_blckjack_01b</code></td><td><code>normalstakes</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-e25b5c1a10d58e58439aac944308236b581b7974%2Fh4_prop_casino_blckjack_01c.jpg?alt=media" alt=""></td><td><code>h4_prop_casino_blckjack_01c</code></td><td><code>normalstakes</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-ee65637380e877653771ed0cf481664a0cfaf63a%2Fh4_prop_casino_blckjack_01d.jpg?alt=media" alt=""></td><td><code>h4_prop_casino_blckjack_01d</code></td><td><code>normalstakes</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-6bcdf8a8644fa54f1522ca71aefc0d8cdcfa9d0d%2Fh4_prop_casino_blckjack_01e.jpg?alt=media" alt=""></td><td><code>h4_prop_casino_blckjack_01e</code></td><td><code>normalstakes</code></td></tr></tbody></table>

## Dealer ped models

The Dealer ped model list in the editor is shared by all three table games and comes from `TablePedModels` in `configs/games/poker.lua`. Add a model there to make it selectable on blackjack tables too.

```lua
TablePedModels = {
    "S_M_Y_Casino_01",
    "S_F_Y_Casino_01",
    "u_f_m_casinocash_01",
    "u_f_m_casinoshop_01",
    "ADD_YOUR_PED_HERE",
}
```

`BlackjackSettings` in `configs/games/blackjack.lua` only holds the two defaults used when a table is created without an explicit dealer model:

```lua
BlackjackSettings = {
    DefaultMaleSkin = "S_M_Y_Casino_01",
    DefaultFemaleSkin = "S_F_Y_Casino_01"
}
```

## 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 spectator/nearby ped models are configured in `configs/games/poker.lua` in the `TableAmbientPeds` list. Blackjack, roulette and poker all draw their ambient peds from this list, so a model added here shows up around every table type.

```lua
TableAmbientPeds = {
    "a_f_m_bevhills_01",
    "a_m_m_bevhills_01",
    "a_m_m_fatlatin_01",
    "a_f_y_fitness_01",
    "a_f_y_smartcaspat_01",
    "a_m_m_mexlabor_01",
    "a_m_m_tennis_01",
    "a_f_y_vinewood_04",
    "a_f_y_hipster_02",
    "a_f_y_hippie_01",
    "a_f_y_eastsa_01",
    "a_f_o_soucent_01",
    "a_f_m_tramp_01",
    "ADD_YOUR_MODEL_HERE",
}
```
