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

# FAQ

CAS Blackjack FAQ: frameworks, SQL, what the script spawns, languages, crashes mid round, bet limits, multiplayer sync and seats per table.

### Which frameworks does it support?

VORP Core and RSG Core. The script detects the one that is running. You can force one with `Config.Framework` (see [Installation](/script-documentation/cas-blackjack/installation.md#framework)).

### Do I need to import SQL or add items?

No. There is no database table and there are no items. Bets in play are kept in the resource's KVP.

### Does it spawn the tables?

No. The blackjack tables and chairs are part of the Blackwater, Rhodes and Van Horn saloon interiors. The script spawns the dealer, the cards, the chips, the deck and the chip caddy for each player within `Config.WatchDistance` of a table, and removes them again when the player walks away.

### Which languages are included?

English. To add a language, copy the `en` table in `config/locale.lua`, rename the copy (for example `Locales.de`), translate the texts and set `Config.Locale = "de"`. Any text you leave out falls back to English. Test the prompts in game, as the game's prompt font does not draw every special character.

### What happens if a player crashes mid round?

Their open hands stand and the round settles as normal. Whatever they won is written down for their character and paid on their next visit. If the resource stops mid round, every bet goes back. See [Money safety](/script-documentation/cas-blackjack/admin-and-exports.md#money-safety).

### Can I change the bet limits?

Yes. Pick another preset (`low`, `medium`, `high`) per table, give a table its own `{ minBet, maxBet, step }`, or edit the presets in `Config.Limits`. See [Changing the bet limits](/script-documentation/cas-blackjack/tables-and-rules.md#changing-the-bet-limits).

### Do all players see the same round?

Yes. The server runs every table. Everyone near a table sees the same dealer, cards and chips in the same order, and other players' chips follow their own animations.

### How many players can sit at a table?

Four seats per table, so twelve players across the three saloons.

### Can players bet gold instead of cash?

On VORP, set `Config.VorpCurrency = 1`. On RSG, set `Config.RsgMoneyType` to the money type you want.

### Can I change the house rules?

Yes. Decks, reshuffle point, soft 17, the blackjack payout, insurance, double and split rules and surrender are all in `Config.Rules` (see [Configuration](/script-documentation/cas-blackjack/configuration.md#house-rules)).

### Can I turn the table sounds off?

Yes. Set `Config.Sounds = false`. That turns off the blackjack audio scene, the table soundset and the clicks when the bet amount changes (see [Configuration](/script-documentation/cas-blackjack/configuration.md#general)).

### Can I log the tables to Discord?

Yes. Put a Discord webhook URL in `Config.Log.webhook`. Every sit-down, every leave and every settled hand (table, character, net result and payout) is posted. See [Table log](/script-documentation/cas-blackjack/admin-and-exports.md#table-log).

### Can I edit the config in the Escrow edition?

Yes. `config/config.lua`, `config/tables.lua` and `config/locale.lua` stay open in the Escrow edition.

### Does it need cas-notification?

No. It is used when it runs. Otherwise the messages go through VORP's or RSG's own notifications.

## More

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