# Installation

## 🪜 **First steps** <a href="#first-steps" id="first-steps"></a>

1. Install the latest stable version of [MariaDB](https://mariadb.org/download/?t=mariadb\&p=mariadb\&r=10.9.8\&os=windows\&cpu=x86_64\&pkg=msi\&m=one).
2. Add all dependencies listed below and follow their installation instructions.
3. Place all slots resources in your `[slots]` folder.
4. Ensure resources in the exact order shown in **Resource positioning**.
5. Start the server once to allow SQL tables to be created automatically.

## **🔴 Dependencies**

* [ox\_lib](https://github.com/overextended/ox_lib) Follow their [installation](https://overextended.dev/ox_lib) instructions.
* [oxmysql](https://github.com/overextended/oxmysql) Follow their [installation](https://overextended.dev/oxmysql) instructions.
* [ox\_target](https://github.com/overextended/ox_target) Follow their [installation](https://overextended.dev/ox_target) instructions.

## **🖼️ Frameworks** <a href="#frameworks" id="frameworks"></a>

Our slots resources are compatible with **QBCore**, **QBox**, **ESX**, and **Standalone** (*custom framework or no-framework*).\
The script auto-detects the framework from the built-in bridge files.

## 🎯 Resource positioning

```lua
-- Core dependencies
ensure oxmysql
ensure ox_lib
ensure ox_target

-- First we start the framework, never below
ensure es_extended or qb-core or qbx_core (or your framework name)

-- Optional interior (recommended when included in your package)
-- This MLO is used as the default pre-configured slots location
ensure tgg-slots-interior
ensure tgg-slots-props

-- Core slots resources
ensure tgg-slots-server

-- Available games
ensure tgg-slots-fruit-cocktail
ensure tgg-slots-lucky-fruits
ensure tgg-slots-plinko
ensure tgg-slots-orbit
```

{% hint style="info" %}
`tgg-slots-interior` is optional. If your package includes it, start it before the slots server to use the default pre-configured setup.
{% endhint %}

## ✅ Notes

* Each game resource depends on `tgg-slots-server`.
* You can keep all listed games enabled, or disable specific game resources if you do not want to use them.
* Database tables are handled automatically on first run.
