> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-blackjack/cas-blackjack-for-redm.md).

# CAS Blackjack for RedM

CAS Blackjack for RedM: blackjack at the Blackwater, Rhodes and Van Horn saloon tables against the story-mode dealer, with the game's own cards, chips and minigame HUD. VORP and RSG.

**Blackjack against the house at the three saloon tables of Red Dead Redemption 2, played in the game itself with the story-mode dealer, the saloon's own cards and chips and the game's minigame HUD.**

{% hint style="success" %}
Drop the folder in, `ensure cas-blackjack` after your framework and the Blackwater, Rhodes and Van Horn tables are open. No SQL, no items, no NUI. VORP Core and RSG Core are detected on their own.
{% endhint %}

## Highlights

* **The story-mode dealer.** A seated house dealer, the saloon's own dealer model, plays the story mode's dealer clips: a riffle or standard shuffle, the deal to every seat, hit, double, split, the hole card reveal, his own draws, paying or taking each seat and the sweep. He holds the deck in his left hand the whole time.
* **Cards and chips that move in the hands.** Every card, chip stack and the deck follows its own prop clip frame by frame, locked to the dealer's or the player's animation. Nothing teleports and nothing pops in.
* **The saloon's own table dressing.** Each saloon's themed cards and chips and the chip caddy, at the spots the story mode uses.
* **Seated player animations.** The story-mode blackjack clips for sitting down, betting, hitting, standing, doubling, splitting, scooping the winnings, the win and loss reactions and standing up, for male and female characters.
* **The game's minigame HUD.** Players and their hands bottom left, the dealer's cards top right as each card lands, the bet amount (live while you change it), the turn timer and the story-mode prompts.
* **Results when the table shows them.** The win, lose or push message comes after the dealer has paid or taken your bet, never before the animation.
* **Four seats per table, in sync.** Everyone near the table sees the same dealer, cards and chips. Other players' chips follow their own animations.
* **Server-side game and money.** The server shuffles, deals, checks every move and pays. The client only shows the round.
* **Safe money.** Bets are written down per character in the resource's KVP. A player who drops mid round is still paid, on the spot or on their next visit, and a stopped resource gives every bet back.
* **Fast rounds.** The server waits only as long as each table needs to show a move, so the prompts come up as soon as the cards are down.
* **Configurable house rules.** Decks, reshuffle point, soft 17, blackjack payout, insurance, double and split rules, surrender and bet limits per table.

## At a glance

| Feature       | Details                                                                              |
| ------------- | ------------------------------------------------------------------------------------ |
| Frameworks    | VORP Core and RSG Core, auto-detected                                                |
| Version       | 1.0.2                                                                                |
| Database      | None, no SQL to import                                                               |
| Items         | None                                                                                 |
| Interface     | No NUI: the game's own minigame HUD and prompts                                      |
| Notifications | `cas-notification` when it runs (optional), otherwise the framework's own            |
| Tables        | Blackwater, Rhodes and Van Horn saloons, 4 seats each                                |
| House rules   | 6 decks, dealer stands on all 17s, blackjack pays 3:2, insurance, double down, split |
| Language      | English, every string in `config/locale.lua`                                         |

## Where to start

| Page                                                                          | What it covers                                                                           |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [Installation](/script-documentation/cas-blackjack/installation.md)           | Requirements, install steps, framework detection, money settings and notifications       |
| [Configuration](/script-documentation/cas-blackjack/configuration.md)         | Every option in `config/config.lua` with its default                                     |
| [Tables and rules](/script-documentation/cas-blackjack/tables-and-rules.md)   | The three saloon tables, bet limits, house rules and payouts                             |
| [Controls](/script-documentation/cas-blackjack/controls.md)                   | Keys, cameras and leaving the table                                                      |
| [Admin and exports](/script-documentation/cas-blackjack/admin-and-exports.md) | Admin and test commands, the table log, the server export and how the money is kept safe |
| [FAQ](/script-documentation/cas-blackjack/faq.md)                             | Short answers to common questions                                                        |
| [Changelog](/script-documentation/cas-blackjack/changelog.md)                 | What changed in each version, newest first                                               |

## More

* [Buy CAS Blackjack](https://codeaftersex.com/script/blackjack)
* [Support Discord](https://discord.gg/codeaftersex)
* [All CodeAfterSex scripts](https://codeaftersex.com/scripts)
