> 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/policia-y-medico/cuxial-medical/commands.md).

# Comandos y permisos

Comandos, teclas y permisos de Cuxial Medical para staff, EMS y jugadores.

Cuxial Medical tiene cuatro comandos de staff, dos de EMS y el comando que abre el panel de administración. Todos los nombres se cambian en `commands` de `shared/config.lua`.

## Comandos

| Comando         | Quién                        | Qué hace                                                                                                                                       |
| --------------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `/medadmin`     | Staff con `admin.permission` | Abre el panel de administración.                                                                                                               |
| `/revive [id]`  | Grupo ACE `group.mod`        | Reanima al jugador con una animación de levantarse y restablece hambre, sed y estrés. Sin `id`, a ti mismo.                                    |
| `/heal [id]`    | Grupo ACE `group.mod`        | Devuelve toda la vida, quita todas las heridas y restablece hambre, sed y estrés. A un jugador caído primero lo reanima. Sin `id`, a ti mismo. |
| `/kill [id]`    | Grupo ACE `group.mod`        | Tumba al jugador. Si ya está caído, lo pasa a la fase siguiente. Sin `id`, a ti mismo.                                                         |
| `/stretcher`    | EMS de servicio              | Coloca una camilla, recoge la que haya a menos de 3 metros, o suelta la que se lleva.                                                          |
| `/delstretcher` | EMS de servicio              | Elimina la camilla que haya a menos de 5 metros.                                                                                               |
| `/mdstretcher`  | Grupo ACE `group.mod`        | Elimina todas las camillas del servidor.                                                                                                       |

{% hint style="info" %}
`[id]` es el id de servidor del jugador y es opcional. También funciona el botón de curar de txAdmin: cura al jugador, o lo reanima si está caído.
{% endhint %}

## Teclas

Valores por defecto de `death.keys`. Cada jugador puede reasignarlas en los ajustes de GTA, en las teclas de FiveM.

| Tecla                              | Cuándo                                    | Qué hace                                                   |
| ---------------------------------- | ----------------------------------------- | ---------------------------------------------------------- |
| <kbd>G</kbd>                       | Caído                                     | Llama a los EMS. Una vez por muerte, no en la última fase. |
| <kbd>E</kbd> (mantener)            | Caído, en una fase que permite reaparecer | Reaparece en el hospital.                                  |
| Botón derecho del ratón (mantener) | Caído                                     | Acerca la cámara.                                          |
| <kbd>W</kbd> <kbd>S</kbd>          | Último aliento                            | Gatea hacia delante o hacia atrás.                         |
| <kbd>A</kbd> <kbd>D</kbd>          | Último aliento                            | Gira.                                                      |
| <kbd>Espacio</kbd>                 | Último aliento                            | Se da la vuelta.                                           |
| <kbd>E</kbd>                       | Tumbado en una cama del hospital          | Se levanta.                                                |
| <kbd>X</kbd>                       | Llevando una camilla                      | La suelta.                                                 |
| <kbd>E</kbd>                       | Llevando una camilla                      | La carga en el vehículo compatible más cercano.            |
| <kbd>X</kbd>                       | Tumbado en una camilla                    | Se levanta.                                                |

Las teclas del último aliento son fijas. Estando caído, el jugador conserva la cámara, la tecla del chat y la de hablar.

## Permisos

### Panel de administración

`/medadmin` pregunta a tu framework si el jugador tiene el permiso de `admin.permission` (`'admin'` por defecto). En ESX eso equivale a los grupos `admin` y `superadmin`.

### Comandos de staff

`/revive`, `/heal`, `/kill` y `/mdstretcher` usan el valor `restricted` de cada comando:

| `restricted`                     | Quién puede usar el comando           |
| -------------------------------- | ------------------------------------- |
| Un grupo ACE, como `'group.mod'` | Los jugadores de ese grupo.           |
| `false`                          | Los jugadores con `admin.permission`. |

Para añadir a un jugador al grupo por defecto:

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

```cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.mod
```

{% endcode %}

### EMS

| Función                                                  | Requisito                                                      |
| -------------------------------------------------------- | -------------------------------------------------------------- |
| Ítems médicos, bolso médico, camilla                     | Un trabajo listado en `jobs`, de servicio                      |
| Recibir avisos de auxilio                                | Un trabajo listado en `jobs`, de servicio                      |
| Tumbarse en una cama del hospital, registro en recepción | Cualquier jugador                                              |
| Remate                                                   | Cualquier jugador con un arma de `finisher.weapons` en la mano |
| Analgésicos y vendaje de uso propio                      | Cualquier jugador, con el extra activado                       |


---

# 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/policia-y-medico/cuxial-medical/commands.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.
