# Dependencies

## Step 1: Download the Required Map

* **Download the Diamond Casino Map & Finger Print Script:**
  * Visit the following link: [Diamond Casino Heist Arcade Interiors](https://forum.cfx.re/t/the-diamond-casino-heist-arcade-interiors/917315) & [Finger Print Hacking Game](https://github.com/utkuali/Finger-Print-Hacking-Game).
  * Download the map and minigame script resources from this pages.
* **Extract and Place the Map & Minigame Script:**
  * Extract the downloaded map and minigame script, place it into your server’s`resources` folder.

## Step 2: Replace `client.lua` File

* **Navigate to the Required Folder:**
  * Go to the `casino/client.lua` file located within the `[required]` folder of the script you purchased.
* **Replace the File:**
  * Replace the existing `client.lua` file in the Diamond Casino map resource with the `client.lua` from the `[required]` folder.

> **Note:** If you skip Step 1 and Step 2, the casino vault door will always remain open in the game, which may affect gameplay and immersion.

## Step 3: Add the Map to Your Server Configuration

* **Open the `server.cfg` or `resources.cfg`:**
  * Open your `server.cfg` or `resources.cfg` file using a text editor.
* **Add the Following Lines:**

  ```plaintext
  ensure casino
  ensure utk_hackdependency
  ensure utk_fingerprint
  ensure rm_casinoheist
  ```
* **Specify the Casino Map Resource:**
  * Ensure the name of the casino map resource (e.g., `casino`) is written on the first line of the configuration.

## Step 4: Verify Game Build

* **Ensure Game Build is 2060 or Higher:**
  * Check that your server is running on game build 2060 or higher. This is necessary for the Diamond Casino Heist script to function correctly.

## Step 5: Final Configuration

* **Modify `config.lua`:**
  * Open the `config.lua` file included with the script.
  * Add the items listed in the `config.lua` to your server’s database.

## Step 6: Final Checks

* **Save and Restart:**
  * Save all your changes.
  * Restart your FiveM server to apply the new settings.
* **Testing:**
  * After restarting, test the casino heist functionality to ensure everything is working as expected.

### Acknowledgments

* **Fingerprint Hack Minigame:** Thanks to `utkuali` for providing the fingerprint hack minigame.
* **Diamond Casino Map:** Thanks to `Mr.Brown` for creating the Diamond Casino map.
