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

# Cuxial Safezones

Zonas seguras para FiveM dibujadas en el juego, con reglas, cartel en pantalla y excepciones propias por zona.

Cuxial Safezones permite a tu staff dibujar zonas seguras directamente en el mundo y decidir qué se aplica dentro de cada una. Las zonas se guardan en la base de datos y llegan a todos los jugadores en cuanto se guardan, sin reiniciar.

## Qué hace

* **Editor dentro del juego.** Una cámara libre para marcar los vértices de un polígono y fijar su suelo y su techo.
* **Invencibilidad** para todos los jugadores que están dentro de una zona.
* **Reglas por zona**: límite de velocidad de vehículos, armas, drive-by y una lista de controles bloqueados.
* **Cartel en pantalla** por zona, con su texto, colores, posición, tipografía, acabado, tamaño e icono.
* **Excepciones** por zona: un trabajo (desde un rango, opcionalmente solo en servicio) o un grupo de permisos puede saltarse las reglas que elijas.
* **Sonido al entrar y salir**, opcional por zona.
* **Apagar una zona** sin borrarla, y dibujar su volumen en el mundo para comprobarlo.
* **Sincronización en vivo.** Crear, editar, apagar o borrar una zona actualiza a todos los jugadores al momento.
* **Exports** para que otros recursos pregunten si un jugador está dentro de una zona segura.

## Requisitos

| Recurso         | Obligatorio | Para qué se usa                                                           |
| --------------- | ----------- | ------------------------------------------------------------------------- |
| `ox_lib`        | Sí          | Zonas, comando, notificaciones, idiomas                                   |
| `oxmysql`       | Sí          | Guarda las zonas                                                          |
| `cuxial_bridge` | Sí          | Conecta con tu framework (QBox, QBCore o ESX) y aporta el editor de zonas |
| `ox_inventory`  | No          | Hace efectiva la regla de «armas no permitidas»                           |

{% hint style="info" %}
La regla de armas se aplica a través de `ox_inventory`. Sin él, usa los controles bloqueados de la zona (atacar, apuntar, disparar).
{% 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, permisos y orden de arranque.</td><td><a href="/scripts/es/nucleo/cuxial-safezones/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 los ajustes de cada zona.</td><td><a href="/scripts/es/nucleo/cuxial-safezones/configuration.md">Configuración</a></td></tr><tr><td><strong>Comandos y permisos</strong></td><td>El comando del panel, las teclas del editor y quién puede usarlos.</td><td><a href="/scripts/es/nucleo/cuxial-safezones/commands.md">Comandos y permisos</a></td></tr><tr><td><strong>Exports y eventos</strong></td><td>Lee las zonas desde tus propios recursos.</td><td><a href="/scripts/es/nucleo/cuxial-safezones/developers.md">Exports y eventos</a></td></tr><tr><td><strong>Problemas frecuentes</strong></td><td>Fallos habituales y cómo resolverlos.</td><td><a href="/scripts/es/nucleo/cuxial-safezones/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/nucleo/cuxial-safezones.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.
