> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/lootbag/installation.md).

# Installation

## Step 1: **Download and Prepare Files**

**Download the Script from FiveM Keymaster**

* Visit the FiveM Keymaster site.
* Log in with your account credentials.
* Locate the **Lootbag** and required **Stream Assets** scripts in your *Granted Assets* section.
* Download both the **Lootbag** and the S**tream Assets** scripts from Keymaster.

**Extract and Upload Files**

* Extract the downloaded archive files (both **Lootbag and Stream Assets script**) on your local machine.
* Upload the **Lootbag and Stream Assets script** to the `resources` folder of your FiveM server.

## Step 2: **Add Script to Server Configuration**

**Edit server.cfg**

* Open the `server.cfg` file located in the root directory of your FiveM server.
* Add the following lines to ensure the **Lootbag** and S**tream Assets script** start with your server:<br>

  <pre class="language-bash"><code class="lang-bash">ensure rm_stream
  <strong>ensure rm_lootbag
  </strong></code></pre>
