v2.2.21 parche
Exports to build your own casino games, and a quieter console
6cambios

Exports to build your own casino games, and a quieter console
6cambios

[02] Versión
This release adds new exports so another resource can run its own game inside the casino. That game uses the same chips, shows up on the dashboard, feeds the bankroll and posts to the casino's webhooks. It also fixes the society cut being paid when chips could not be taken, and the update notice repeating every 30 minutes.
qs-diamondcasino/docs/exports.md.Replace these, except what you edited yourself:
qs-diamondcasino/server/main.lua, server/modules/stats.lua, server/version.lua and fxmanifest.lua.client/modules/exports.lua, server/modules/exports.lua and docs/exports.md.web/build/ — replace the whole folder, because the file names inside it changed.config/, locales/, sql/ and the custom/ folders were not changed.Another resource can now read, take and give chips (GetChips, HasChips, TakeChips, GiveChips) and check membership, staff permissions and casino funds (IsMember, IsCasinoAdmin, CanPlay, GetEconomy). It can record bets and payouts in the casino bankroll (RecordBet, RecordPayout), read the dashboard figures (GetStats), and send casino notifications and Discord logs (Notify, Log).
RegisterGame adds a game to the /casino dashboard under its own name, with its wagers, payouts and win rate next to the built-in games.
Chips taken with the reason 'transfer' move between players without counting toward the Global Jackpot or paying the society cut. This fits a poker table where players play against each other rather than the house.
Show a casino notification, or read the local player's chip balance, from another client script.
The society cut was paid even when the player did not have the chips and nothing was removed. It is now paid only after the chips are taken.
The console repeated the outdated-version notice every 30 minutes. It now appears a single time when the resource starts.