# Installation

Read carefully to ensure you've done everything required. This resource is NOT drag & drop as it requires you to setup the API key for Cloudflare TURN.

## Requirements

* [Ox Lib](https://github.com/overextended/ox_lib/releases/) (Required, Works anywhere).
* Kadfilm's FX Lights <https://github.com/kadfilm/kad_fxlights>
* Cloudflare TURN (This is free for up to 1000GB per month at the time of this writing, easy to setup)
* No framework required! Items work with ESX / QB but can be ran item-less for standalone servers automatically.

#### Installation <a href="#installation" id="installation"></a>

1. Drag and drop the resource and rename it to **pickle\_dj**.

2. Install Kadfilm's FX Lights as a seperate resource named **kad\_fxlights** <https://github.com/kadfilm/kad_fxlights>

3. Create a Cloudflare account (if you haven't already)

4. Go to the TURN Server page <https://dash.cloudflare.com/?to=/:account/realtime/turn>

5. You will be asked to include a payment method, however you won't be charged unless you go over their usage limit that month (1000GB at the time of this writing).

6. Click the "Create" button to the right of Overview and Analytics, the name is whatever you prefer.

   <figure><img src="https://3307626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqa8jObpSwWArIHNbZSA4%2Fuploads%2FCkLJLKxlyjRpGKZJmoQl%2Fimage.png?alt=media&#x26;token=36945073-1b1f-4da6-9481-dfb283789117" alt=""><figcaption></figcaption></figure>

7. Then, open config\_sv.lua and set the corresponding values in ConfigSV.StreamingServer

   ```lua
   ConfigSV.StreamingServer = {
       mode = "cloudflare",
       cloudflare = {
           turnTokenId = "TURN_TOKEN_HERE", -- Turn Token ID
           apiToken = "API_TOKEN_HERE", -- API Token
       }
   }
   ```

   <figure><img src="https://3307626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqa8jObpSwWArIHNbZSA4%2Fuploads%2FwIbIFu8wYTQsavaO5Cs5%2Fimage.png?alt=media&#x26;token=8a21d635-88cb-469b-ae88-8efe2aad0715" alt=""><figcaption></figcaption></figure>

8. Click "Finish" on the bottom right of that page.

9. Ensure both **pickle\_dj** and **kad\_fxlights** in the server.cfg

10. All set, restart the script and enjoy!

#### Disclaimer

We are not responsible for you going over your limits with Cloudflare's TURN service, please be responsible, monitor, and manage your usage.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.picklemods.com/paid-resources/dj-system/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
