> For the complete documentation index, see [llms.txt](https://rtx-dev.gitbook.io/rtxdev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rtx-dev.gitbook.io/rtxdev/survival-games.md). Agents can also search and read this documentation through its [MCP server](https://rtx-dev.gitbook.io/rtxdev/~gitbook/mcp).

# Survival Games

Documentation for RTX Survival Games, the FiveM Survival Games Script for ESX, QBCore and QBox: installation, configuration, commands, exports and FAQ.

{% embed url="<https://www.youtube.com/watch?v=agq4tI8dD7c>" %}

## Purchase

[Purchase this resource](https://rtx.tebex.io/package/6661229)

## Installation

{% hint style="info" %}
**Framework compatibility**

This resource is **standalone** and works on any FiveM server.

Compatible with **ESX**, **QBCore**, **QBox**, **vRP**, and other frameworks.

If you are using a framework other than ESX, QBCore, or QBox, follow the **Standalone** installation instructions.
{% endhint %}

### Standalone

{% stepper %}
{% step %}

### Add resource files

Put the `rtx_survivalgames` folder into your `resources`.
{% endstep %}

{% step %}

### Configure

Open `config.lua` and configure it to your preferences (for example, set how the game will work).
{% endstep %}

{% step %}

### Enable resource

Add `rtx_survivalgames` to your `server.cfg`.
{% endstep %}

{% step %}

### Add objects

Put the `rtx_survivalgames_objects` folder into your `resources` and add `rtx_survivalgames_objects` to your `server.cfg`.
{% endstep %}

{% step %}

### Install dependency

Download PolyZone and put it in your `resources` folder. (<https://github.com/mkafrin/PolyZone>)

Add the PolyZone resource to your `server.cfg`.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
By default, the player joins survival games via the /joinlobby command.
{% endhint %}

### QBCore

{% stepper %}
{% step %}

### Add resource files

Put the `rtx_survivalgames` folder into your `resources`.
{% endstep %}

{% step %}

### Configure framework

Open `config.lua` and replace:

```
Config.Framework = "standalone"
```

with:

```
Config.Framework = "qbcore"
```

Then configure `config.lua` to your preferences (for example, set how the game will work).
{% endstep %}

{% step %}

### Enable resource

Add `rtx_survivalgames` to your `server.cfg`.
{% endstep %}

{% step %}

### Add objects

Put the `rtx_survivalgames_objects` folder into your `resources` and add `rtx_survivalgames_objects` to your `server.cfg`.
{% endstep %}

{% step %}

### Install dependency

Download PolyZone and put it in your `resources` folder. (<https://github.com/mkafrin/PolyZone>)

Add the PolyZone resource to your `server.cfg`.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
By default, the player joins survival games via the /joinlobby command.
{% endhint %}

### ESX

{% stepper %}
{% step %}

### Add resource files

Put the `rtx_survivalgames` folder into your `resources`.
{% endstep %}

{% step %}

### Configure framework

Open `config.lua` and replace:

```
Config.Framework = "standalone"
```

with:

```
Config.Framework = "esx"
```

Then configure `config.lua` to your preferences (for example, set how the game will work).
{% endstep %}

{% step %}

### Enable resource

Add `rtx_survivalgames` to your `server.cfg`.
{% endstep %}

{% step %}

### Add objects

Put the `rtx_survivalgames_objects` folder into your `resources` and add `rtx_survivalgames_objects` to your `server.cfg`.
{% endstep %}

{% step %}

### Install dependency

Download PolyZone and put it in your `resources` folder. (<https://github.com/mkafrin/PolyZone>)

Add the PolyZone resource to your `server.cfg`.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
By default, the player joins survival games via the /joinlobby command.
{% endhint %}

## Notes

This page contains simple installation instructions only.

More detailed instructions, exports, events and developer-related information can be found directly inside the product folder after downloading the resource from the CFX Asset Portal.

## Support

If you need help with installation, configuration or have any questions regarding this resource, feel free to contact us on our Discord server:

[Join our Discord](https://discord.gg/rtxdev)
