> 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/nucleo/cuxial-safezones/installation.md).

# Instalación

Instala Cuxial Safezones paso a paso: dependencias, permisos y orden de arranque.

Cuxial Safezones no necesita importar SQL ni añadir ítems al inventario. Crea su propia tabla en el primer arranque.

{% stepper %}
{% step %}

## Comprueba 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. Consulta [Cuxial Bridge](/scripts/es/primeros-pasos/cuxial-bridge.md).

`ox_inventory` es opcional. Es quien hace efectiva la regla de «armas no permitidas» de una zona. Sin él, bloquea en la zona los controles de atacar, apuntar y disparar.
{% endstep %}

{% step %}

## Copia el recurso

Coloca la carpeta `cuxial_safezones` dentro de tu directorio `resources`. No le cambies el nombre.
{% endstep %}

{% step %}

## Da los permisos

Gestionar zonas necesita dos permisos ACE: `admin`, que se comprueba cada vez que se guarda una zona, y `command.crearzona`, necesario para ejecutar el comando.

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

```cfg
add_ace group.admin admin allow
add_ace group.admin command.crearzona allow
```

{% endcode %}

{% hint style="info" %}
Cambia `group.admin` por el grupo al que pertenece tu staff. Si cambias `command.name` o `command.ace` en el config, usa los nombres nuevos en estas líneas.
{% endhint %}
{% endstep %}

{% step %}

## Define el idioma

Opcional. Se incluyen `en` y `es`.

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

```cfg
setr ox:locale "es"
```

{% endcode %}
{% 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
# tu framework aquí (qbx_core, qb-core o es_extended)
ensure cuxial_bridge
# opcional
ensure ox_inventory
ensure cuxial_safezones
```

{% endcode %}

No hay SQL que ejecutar. El recurso crea la tabla `cuxial_safezones` al arrancar y escribe `[cuxial_safezones][mysql] tabla lista` en la consola del servidor.

{% hint style="info" %}
¿Vienes de una versión anterior que usaba la tabla `cuxialsz`? Sus zonas se copian a la tabla nueva en el primer arranque, siempre que la nueva esté vacía. La tabla antigua no se borra.
{% endhint %}
{% endstep %}

{% step %}

## Comprueba que funciona

1. Entra al servidor con una cuenta de staff y escribe `/crearzona`. Se abre el panel.
2. Ve a **Crear**, ponle a la zona un nombre de al menos 4 caracteres y confirma.
3. Marca tres o más vértices con el botón izquierdo del ratón y pulsa <kbd>Intro</kbd>.
4. Entra andando en la zona. Pasas a ser invencible y aparece el cartel si lo activaste.
   {% endstep %}
   {% endstepper %}

Siguiente: ajusta las reglas en [Configuración](/scripts/es/nucleo/cuxial-safezones/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/nucleo/cuxial-safezones/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.
