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

# Instalación

Instala Cuxial Anuncios paso a paso: dependencias, orden de arranque y primer estilo.

Cuxial Anuncios no necesita importar SQL, ni items de inventario, ni convars. Crea su propia tabla en el primer arranque.

{% stepper %}
{% step %}

## Revisa las dependencias

Estos recursos tienen que estar instalados y funcionando antes:

* `ox_lib`
* `oxmysql`
* `cuxial_bridge`, con uno de los frameworks compatibles: QBox, QBCore o ESX
  {% endstep %}

{% step %}

## Copia el recurso

Coloca la carpeta `cuxial_anuncios` dentro de tu directorio `resources`. Mantén el nombre de la carpeta tal cual.
{% endstep %}

{% step %}

## Arranca el recurso

Arráncalo después de sus dependencias y de tu framework:

{% code title="server.cfg" %}

```cfg
ensure ox_lib
ensure oxmysql
# aquí tu framework (qbx_core, qb-core o es_extended)
ensure cuxial_bridge
ensure cuxial_anuncios
```

{% endcode %}

No hay SQL que ejecutar. El recurso crea la tabla `cuxial_anuncios` al arrancar.
{% endstep %}

{% step %}

## Revisa la consola del servidor

Al arrancar, el recurso muestra cuántos estilos ha cargado:

```
[CuxialAnuncios] 0 estilo(s) cargado(s)
```

En una instalación nueva el valor es `0`: los estilos se crean en el paso siguiente.
{% endstep %}

{% step %}

## Crea el primer estilo

1. Entra al servidor con una cuenta de staff y escribe `/crearanuncio`. Se abre el panel.
2. Crea un estilo. Escribe un título y el nombre interno de un trabajo, por ejemplo `police`.
3. Guarda, ponle ese trabajo a tu personaje y escribe `/anuncio prueba`. El anuncio aparece en pantalla.
   {% endstep %}
   {% endstepper %}

{% hint style="warning" %}
Un trabajo sin estilo no puede enviar anuncios. Crea un estilo por cada trabajo que deba poder usar `/anuncio`.
{% endhint %}

Siguiente: ajusta los comandos y la espera en [Configuración](/scripts/es/interfaz/cuxial-anuncios/configuration.md).


---

# 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-anuncios/installation.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.
