> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-metabolism-v2/installation.md).

# Installation

Install CAS Metabolism V2 on your RedM server in five minutes — VORP or RSG Core, oxmysql, no SQL import required.

### Before you start

You need one of these already running:

* **VORP Core** (`vorp_core`), or
* **RSG Core** (`rsg-core`)

and **oxmysql**. Nothing else.

***

### 1. Drop the folder in

Put `cas-metabolism` anywhere in your `resources` folder. Most people use a category folder:

```
resources/[cas]/cas-metabolism/
```

### 2. Start it after your framework

In `server.cfg`, below the line that starts your core:

```cfg
ensure vorp_core        # or: ensure rsg-core
ensure oxmysql
ensure cas-metabolism
```

{% hint style="warning" %}
It must start **after** the framework. Started before, it cannot find the core and will say so in the console.
{% endhint %}

### 3. Restart the server

That is the install. There is **no SQL file to import** — the resource creates its own table the first time it starts and prints:

```
[CAS-Metabolism] Persistence table `cas_metabolism_v2` is ready.
```

***

### Did it work?

Start the server and look for these three lines:

```
[CAS-Metabolism] VORP Framework detected (Server)
Started resource cas-metabolism
[CAS-Metabolism] Persistence table `cas_metabolism_v2` is ready.
```

Then join. The HUD appears once you are in the world — not on the character selection or creation screen.

***

### Before you go live

Open `config/config.lua` and set:

```lua
Config.Debug = {
    enabled = false,        -- ⚠️ ships false, keep it false on a live server
    openItemCommand = false,
}
```

`Config.Debug.enabled` opens a set of testing commands to **every** player. It ships off. Turn it on only while you are setting the server up on your own machine, and turn it back off before anyone else joins.

***

### Removing an older metabolism script

If you already run another hunger/thirst resource, stop it. Two of them will fight over the same player health and the same walk animations, and the result looks like both are broken.

```cfg
# ensure some-other-metabolism
ensure cas-metabolism
```
