v2.2.20 patch
Inside Track secured, players no longer stuck in races, and a lighter casino map
7changes

Inside Track secured, players no longer stuck in races, and a lighter casino map
7changes

[02] Release
This release closes two Inside Track exploits that could hand out chips, and players no longer get stuck without controls during a race. A player and dealer blackjack together is now a push. casino_map no longer loads Cayo Perico unless you ask for it, and both SQL files now hold every table the casino uses.
casino_map. If your server relied on casino_map to load the island, add this line to server.cfg:setr qs_casino_cayo true
Use setr, not set. Leave it off if another resource already loads Cayo Perico.
[sql]/qs-diamondcasino.sql and qs-diamondcasino/sql/database.sql are now the same file, and both contain every table, for anyone who prefers to import by hand.ALTER TABLE casino_memberships MODIFY chips BIGINT NOT NULL DEFAULT 0;Replace these, except what you edited yourself:
casino_map/ — the whole resource. It is a separate resource, so restart it too.qs-diamondcasino/ — client/modules/inside_track.lua, server/modules/inside_track.lua, server/modules/blackjack.lua, sql/database.sql, fxmanifest.lua.[sql]/qs-diamondcasino.sql.config/, locales/ and the custom/ folders were not changed.A negative bet could add chips instead of taking them, and a single race could pay whatever amount was claimed. Bets must now be positive and within the maximum. A single race pays only a bet the server took, once, and never more than twice the bet.
[sql]/qs-diamondcasino.sql was missing three tables and stored chips as INT. Both SQL files are now identical and hold all eight tables. Importing them stays optional.
When the player and the dealer both had blackjack, the player was paid 3:2. It is now a push and the bet is returned.
A race that never reported its end left the player without controls. A race now always ends after a time limit, and ESC or BACKSPACE leaves it (the bet is lost).
A Single Event no longer needs the wall screen to have loaded first, so it starts at any terminal.
Players arriving during a Main Event now see the race on the big screen straight away.
The island is not part of the casino and often clashed with other resources. It is now off, which also saves performance. Add setr qs_casino_cayo true to server.cfg to load it.