v2.2.22 patch
Every game checked on the server, safer payouts and a lighter client
18changes

Every game checked on the server, safer payouts and a lighter client
18changes

[02] Release
This release hardens every game, the VIP rooms and the cashier. The server now checks distance, table and seat, limits how fast chips and bets can be sent, and refunds safely when something fails midway. It also fixes slots, roulette and blackjack issues and makes the client lighter when idle.
Config.Phone.allowRemote = true in config/main.lua.Config.Debug now ships as false. You can still turn debug on in /casinoconfig → General.utf8mb4_unicode_ci; existing tables are left as they are.Replace every file in the resource, except what you edited yourself:
config/main.lua — two lines changed (Config.Debug and the new Config.Phone.allowRemote). If you keep your own file, add Config.Phone.allowRemote = false under Config.Phone.waypoint.custom/esx/client.lua, custom/esx/server.lua, custom/qb/server.lua, custom/client.lua and server/custom/society/esx_society.lua changed. If you edited them, copy your changes onto the new files.locales/ — every language changed. Re-apply any translation you edited.web/build/ and dui/jackpot.html — replace them entirely.Blackjack, poker, roulette, slots, Inside Track, the Lucky Wheel, the VIP rooms and the cashier now confirm on the server that the player is really at that table or machine before any action is accepted.
Every chip, bet and payout action is rate limited and locked per player, so the same win cannot be paid twice and requests cannot be flooded.
If something fails partway through a bet or a payout, the player gets back what they are owed instead of losing it.
The table state a player sends is checked by the server before the other players receive it.
On start, the console reports common setup problems so they are easy to spot.
Buying and selling chips from the qs-smartphone Casino app is now off. Set Config.Phone.allowRemote = true to allow it.
The interface and the jackpot screen no longer load anything from outside the server.
The console shows only the most important changes of a new version, and announces each version once.
The chip balance now updates after a winning spin, and the down arrow lowers the bet.
The table said "bet too low" when the bet was too high. It now says the bet is too high.
If the casino tables could not be set up at startup, the script now retries correctly.
No repeated interface updates and no empty loops while nobody is playing.