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

# Television

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

## Purchase

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

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

## Installation

### Standalone

{% stepper %}
{% step %}

### Install files

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

{% step %}

### Configure

Configure your `config.lua` to your preferences.

Note: Configure the notify line at the bottom of `config.lua` — you need to use the resource's notify system or change that line to match your notification system.
{% endstep %}

{% step %}

### Enable on server

Add `rtx_tv` to your `server.cfg`.
{% endstep %}
{% endstepper %}

### QBCore

{% stepper %}
{% step %}

### Install files

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

{% step %}

### Configure framework

Open `config.lua` and replace:

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

with:

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

Then configure the rest of `config.lua` to your preferences.
{% endstep %}

{% step %}

### Database

Upload `sql_QBCORE.sql` to your MySQL database.
{% endstep %}

{% step %}

### Add items

Add the following new items to `qb-core/shared/items.lua` (items names: `tvremote`, `vehicletv`):

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

```lua
['tvremote'] = {['name'] = 'tvremote', ['label'] = 'TV Remote', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'tvremote.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'TV Remote'},
['vehicletv'] = {['name'] = 'vehicletv', ['label'] = 'TV Remote', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'vehicletv.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Vehicle TV'},
```

{% endcode %}
{% endstep %}

{% step %}

### fxmanifest

Open `fxmanifest.lua` and edit it as shown in the screenshot: <https://i.imgur.com/LWaYxz7.png>

Specifically, remove `--` from line 11, or replace line 11 with:

```
'@oxmysql/lib/MySQL.lua',
```

{% endstep %}

{% step %}

### Enable on server

Add `rtx_tv` to your `server.cfg`.
{% endstep %}
{% endstepper %}

### ESX

{% stepper %}
{% step %}

### Install files

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

{% step %}

### Configure framework

Open `config.lua` and replace:

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

with:

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

Then configure the rest of `config.lua` to your preferences.
{% endstep %}

{% step %}

### Database

Upload `sql_ESX.sql` to your MySQL database.
{% endstep %}

{% step %}

### fxmanifest

Open `fxmanifest.lua` and edit it as shown in the screenshot: <https://i.imgur.com/yoULcX4.png>

Specifically, remove `--` from line 10, or replace line 10 with:

```
'@mysql-async/lib/MySQL.lua',
```

{% endstep %}

{% step %}

### Enable on server

Add `rtx_tv` to your `server.cfg`.
{% endstep %}
{% endstepper %}

If you want a new interface style, instructions can be found in the "New Interface Style" folder.

Video Tutorial for new Vehicle Offsets (Be sure to enable Config.VehicleTelevisionOffSetsCreator in config):\
<https://www.youtube.com/watch?v=7Cu8LqRgvj0>

Video Tutorial for In-Game Screen Creator (Be sure to enable Config.CustomTvCreator in config):\
<https://www.youtube.com/watch?v=5NAdvOsIQ2E>

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