🎰 Casino Integration
The casino integration lets players put slot machines, lucky wheels, and casino tables in their own properties. nolag_properties handles placement, ownership, approvals, and costs, and TGG Casino & Slots runs the games and keeps track of the money.
Requirements
| Resource | Needed for |
|---|---|
nolag_properties | Placing machines in properties, approvals, costs, and permissions |
tgg-slots-server | Slot machines, lucky wheels, and machine metrics |
tgg-casino-tables (optional, comes with Casino & Slots) | Table games such as roulette, blackjack, and poker |
Installation
- Install TGG Casino & Slots by following its installation guide.
- Start both resources in
server.cfg. The order doesn't matter, because each script connects to the other once both are running.
Codeensure nolag_properties ensure tgg-slots-server ensure tgg-casino-tables # optional, for table games
- Turn the integration on in both scripts. It is off by default in both, so nothing happens until you enable it.
Properties: go to Settings → Integrations → Casino and turn on Casino integration.
Casino & Slots: open the admin panel, go to Settings → Properties integration, turn on Enabled, and click Save changes. This setting is stored in the database and can only be changed from the admin panel. There is no config option for it.
Both changes apply right away. You don't need to restart either resource.
Settings
Everything below is under Settings → Integrations → Casino. These options only show while Casino integration is turned on and Casino & Slots is detected. A chip in the card header shows whether tgg-slots-server is connected. If it isn't, a warning explains why and gives you a Check again button.
| Setting | Description |
|---|---|
| Property approval | Automatic lets every property host a casino. Admin approval makes owners request approval first. |
| Machine approval | Automatic or Admin approval for each machine an owner places. |
| Default machine limit | The most casino machines one property can have. |
| Machine purchase | Free, or charge the furniture catalog price. |
| Activation charge / fee | An optional one-time fee to activate each machine. |
| Utility requirements | Pause machines when the property's internet or electricity is cut off. |
| Machine upkeep | Charge each machine every upkeep period. Owners pay any upkeep they owe to keep machines running. |
| Dealer salary | Charge tables run by a dealer every salary period. |
| Management permissions | Whether owners can turn machines on and off, and whether property managers can manage them. |
| Allowed games | Choose which installed games can be used in properties. If you leave it empty, every compatible game is allowed. |
Casino capacity is set separately from normal furniture capacity, in Settings → Upgrades → Casino. Each upgrade tier unlocks more slots, tables, and wheels.
How players use it
- The owner opens the property's management menu and goes to the Casino tab.
- If property approval is set to admin, the owner clicks Request property approval, and an admin approves it in the admin menu.
- The owner clicks Add casino furniture, picks a slot machine or table, and places it like any other furniture.
- The machine starts working once it's approved and any purchase or activation fee is paid.
Admins can see every property machine in the Casino & Slots admin dashboard, under Machine Metrics → Properties.
For the Casino & Slots side of the setup, see Properties integration in the Casino & Slots docs.
Troubleshooting
- "Casino & Slots isn't running" in the settings. Start
tgg-slots-server(ensure tgg-slots-server), then click Check again. - "Property integration is off in Casino & Slots" in the settings. In the Casino & Slots admin panel, go to Settings → Properties integration, turn on Enabled, save, then click Check again.
- "Casino integration is disabled." Turn on Casino integration in Properties and Properties integration in the Casino & Slots admin settings, then check that
tgg-slots-serveris running. - No table games in the furniture list. Start
tgg-casino-tables, and upgrade the property's Casino tier so tables are unlocked. - Machines are paused. Check the property's internet and electricity if those requirements are on, and check for unpaid upkeep.