# Zombie System V2

## INSTALLATION

### 1.  Resource Download

\
**To get started, you'll need to download your new resource previously purchased from** [**shop**](https://loureiro-stoned.gitbook.io/docs/overview/website-shop)**.** For that we must log in with our account at [`keymaster`](https://keymaster.fivem.net/asset-grants/) and look for the Asset grants section, there we will find our complete package.

{% hint style="info" %}
To get updates you get them from the same website ([keymaster](https://keymaster.fivem.net/asset-grants)).
{% endhint %}

### 2. Unzip The Folder

Unzip the script folder than **copy&#x20;*****stoned-zombiesv2*** and **paste** it on your server **resources folder**.

{% hint style="info" %}
If you want to use the **zombies addon**, you will have to copy the files inside the "stream" folder to your peds or map pack, for example.
{% endhint %}

### 3. Ensure

Put this line in your server.cfg.

{% hint style="warning" %}
This should be under your essentials resources.
{% endhint %}

```
ensure stoned-zombies
```

## CONFIGURATION

### 4. Configure

Configure the *config.lua* file present in the resource, with the help of comments to facilitate your configuration.

**4.1** Open **config.lua**

Here you configure literally everything in the system, what it does is commented line by line.

{% hint style="info" %}
**Important!**

* Make sure you choose your ***framework***
* Make sure you have all items defined in ***Config.Rewards*** that are created in your inventory.
  {% endhint %}

**Important Notes:**

* What increases the number of zombies spawned is Config.D**ensity**
* What makes spawning zombies faster or slowly is **Config.spawnWaitDay** & **Config.spawnWaitNight**

\
**4.2** Open **cl\_config.lua**

Here you will have the configuration part to integrate your systems such as: notification, XP System, TextUI.

There is also the possibility to change the drawtext3D style.

### 5. Restart Server

Restart your game server and enjoy the system.


---

# 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://loureiro-stoned.gitbook.io/docs/scripts-guides/zombie-system-v2.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.
