> 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/water-activities.md).

# Water Activities

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

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

## Purchase

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

## 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 %}

{% stepper %}
{% step %}

### Standalone

* Put the `rtx_wateractivities` folder into your `resources`.
* Open `config.lua`.
* Configure your `config.lua` to your preferences.
* Add `rtx_wateractivities` to your `server.cfg`.
  {% endstep %}

{% step %}

### QBCore

* Put the `rtx_wateractivities` folder into your `resources`.
* Open `config.lua`.
* Replace `Config.Framework = "standalone"` with `Config.Framework = "qbcore"`.
* Configure your `config.lua` to your preferences.
* Add `rtx_wateractivities` to your `server.cfg`.
* Add new items to `qb-core/shared/items.lua` — item names: `banana`, `inflatable`, `parasailing`, `ski`, `circle`, `bed1`, `bed2`, `bed3`, `bed4`.

Example items lines for `items.lua`:

{% code title="qb-core/shared/items.lua" %}

```lua
['banana'] = {['name'] = 'banana', ['label'] = 'Banana', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'banana.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Banana'},
['inflatable'] = {['name'] = 'inflatable', ['label'] = 'Inflatable', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'inflatable.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Inflatable'},
['parasailing'] = {['name'] = 'parasailing', ['label'] = 'Parasailing', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'parasailing.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Parasailing'},
['ski'] = {['name'] = 'ski', ['label'] = 'Ski', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'ski.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Ski'},
['circle'] = {['name'] = 'circle', ['label'] = 'Circle', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'circle.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Circle'},
['bed1'] = {['name'] = 'bed1', ['label'] = 'Lounger 1', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'bed1.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lounger'},
['bed2'] = {['name'] = 'bed2', ['label'] = 'Lounger 2', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'bed2.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lounger'},
['bed3'] = {['name'] = 'bed3', ['label'] = 'Lounger 3', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'bed3.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lounger'},
['bed4'] = {['name'] = 'bed4', ['label'] = 'Lounger 4', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'bed4.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Lounger'},
```

{% endcode %}
{% endstep %}

{% step %}

### ESX

* Put the `rtx_wateractivities` folder into your `resources`.
* Open `config.lua`.
* Replace `Config.Framework = "standalone"` with `Config.Framework = "esx"`.
* Configure your `config.lua` to your preferences.
* Add `rtx_wateractivities` to your `server.cfg`.
  {% endstep %}
  {% endstepper %}

### Spawning & Commands

Water activities can be spawned using commands when the player is driving a boat. By default, spawning is enabled through commands, but you can also set up an item in the config file.

Available commands:

* /spawnbanana – spawns a banana ride
* /spawnring1 – spawns an inflatable ring ride (for 3 players)
* /spawnring2 – spawns an inflatable ring ride (for 3 players)
* /spawnparachute – spawns a parasailing ride
* /spawnski – spawns a water ski ride
* /lounger1 – spawns a lounger (type 1)
* /lounger2 – spawns a lounger (type 2)
* /lounger3 – spawns a lounger (type 3)
* /lounger4 – spawns a lounger (type 4 for 4 players)

### 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)
