> For the complete documentation index, see [llms.txt](https://docs.cuxial.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cuxial.com/scripts/es/interfaz/cuxial-chat.md).

# Cuxial Chat

Chat de rol para FiveM con canales de color, acciones sobre la cabeza y ajustes por jugador.

Cuxial Chat sustituye al chat por defecto de FiveM por un chat de rol organizado en canales. Sigue siendo compatible con los recursos escritos para el chat estándar, así que no hay que cambiar nada más en el servidor.

## Qué hace

* **Canales con color y pestaña propia.** IC, OOC, ME, DO, PM y el canal de organizaciones tienen su pestaña; las tiradas, las sanciones y los mensajes del sistema salen en la vista general.
* **`/me`, `/do` y tiradas sobre la cabeza, en el chat o en ambos.** Tú eliges el valor por defecto del servidor y cada jugador puede cambiarlo.
* **Aviso de «está escribiendo»** sobre los jugadores cercanos.
* **Autocompletado de comandos** con búsqueda difusa, menciones con `@` a jugadores cercanos y selector de emojis.
* **Ajustes por jugador**: posición, escala, ancho, alto, opacidad, densidad, hora, sonidos y canales silenciados.
* **Nombre anónimo** al llevar máscara, canal por canal.
* **Canal de organizaciones** (`/gchat`) con una variante que la policía también puede leer.
* **Envío de imágenes** desde una lista de dominios permitidos (desactivado por defecto).
* **Registro de mensajes** en base de datos y en un webhook de Discord.
* **Compatibilidad con el chat estándar**: `exports.chat:addMessage`, `chat:addMessage`, `chat:addSuggestion` y el resto siguen funcionando.

## Requisitos

| Recurso         | Obligatorio | Para qué                                      |
| --------------- | ----------- | --------------------------------------------- |
| OneSync         | Sí          | Canales de proximidad                         |
| `ox_lib`        | Sí          | Comandos, tecla y textos                      |
| `oxmysql`       | Sí          | Ajustes de los jugadores y registros          |
| `cuxial_bridge` | Sí          | Conecta con tu framework (QBox, QBCore o ESX) |
| `cuxial_gang`   | No          | Da a cada organización su color en `/gchat`   |

{% hint style="warning" %}
Cuxial Chat ocupa el lugar del recurso `chat`. Ni el `chat` por defecto ni ningún otro script de chat pueden estar activos a la vez.
{% endhint %}

## Páginas

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Instalación</strong></td><td>Dependencias, convars y orden de arranque.</td><td><a href="/scripts/es/interfaz/cuxial-chat/installation.md">Instalación</a></td></tr><tr><td><strong>Configuración</strong></td><td>Todas las opciones de <code>shared/config.lua</code> y la lista de canales.</td><td><a href="/scripts/es/interfaz/cuxial-chat/configuration.md">Configuración</a></td></tr><tr><td><strong>Comandos y permisos</strong></td><td>Comandos del chat, teclas y quién puede usar cada cosa.</td><td><a href="/scripts/es/interfaz/cuxial-chat/commands.md">Comandos y permisos</a></td></tr><tr><td><strong>Exports y eventos</strong></td><td>Envía mensajes al chat desde tus propios recursos.</td><td><a href="/scripts/es/interfaz/cuxial-chat/developers.md">Exports y eventos</a></td></tr><tr><td><strong>Problemas frecuentes</strong></td><td>Los fallos más habituales y cómo resolverlos.</td><td><a href="/scripts/es/interfaz/cuxial-chat/troubleshooting.md">Problemas frecuentes</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cuxial.com/scripts/es/interfaz/cuxial-chat.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
