> 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/scenes-draw-everywhere/installation.md).

# Installation

{% stepper %}
{% step %}

### Install the dependencies

{% hint style="info" %}
Make sure everything on the [Dependencies](/resources/scenes-draw-everywhere/dependencies.md) page is installed and starting **before** this resource.
{% endhint %}
{% endstep %}

{% step %}

### Add the resource

Download the package from [Portal](https://portal.cfx.re/assets/granted-assets), unzip it, and put the `rm_scenes` folder in your server's `resources` directory. Do **not** rename the folder.
{% endstep %}

{% step %}

### Start the resource

Add it to your `server.cfg`, below `oxmysql`, `ox_lib` and your framework so the dependencies are already running:

```cfg
ensure oxmysql
ensure ox_lib
ensure qb-core # your framework

ensure rm_scenes
```

It doesn't need to sit at the top of the file: anywhere below the dependencies works.
{% endstep %}

{% step %}

### Database

No SQL to run. The `rm_scenes` table is created (and older installs migrated) automatically on first start.
{% endstep %}

{% step %}

### Grant admin access

Admins see every scene in the list, delete/teleport/bulk-manage them, and bypass creation limits and job zone restrictions. Anyone with the ace permission `command` (txAdmin admins) already counts; everyone else goes into `cfg.auth.admins`:

```lua
cfg.auth = {
    -- ...
    admins = {
        ['license:0aa00a00a00aa000a000000a00000a00a00aa000'] = true,
    },
}
```

{% endstep %}

{% step %}

### Configure

Create your first scene in-game with `/create_scene` and open the list with `/scenes`. Then head to [Configuration](/resources/scenes-draw-everywhere/configuration.md) to tune permissions, durations and features.

{% hint style="success" %}
The server console prints `loaded N scenes` when the resource starts, a quick sanity check that the database connection works.
{% endhint %}
{% endstep %}
{% endstepper %}
