> 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-banking/commands.md).

# Comandos y permisos

El comando de staff de Cuxial Banking, los ítems usables y quién puede hacer qué.

Cuxial Banking tiene un solo comando, para el staff. Los jugadores usan el banco mediante sucursales, cajeros e ítems.

## Comandos

| Comando      | Quién | Qué hace                                                                                                     |
| ------------ | ----- | ------------------------------------------------------------------------------------------------------------ |
| `/bankadmin` | Staff | Abre el panel de staff: resumen, ciudadanos, sociedades, préstamos, puntos, ajustes y registro de auditoría. |

El nombre del comando es `commands.admin.name` en `shared/config.lua`. Un nombre vacío quita el comando.

## Teclas

El banco no añade ninguna tecla.

## Interacciones

| Dónde                                     | Quién                                      | Qué hace                                  |
| ----------------------------------------- | ------------------------------------------ | ----------------------------------------- |
| Sucursal del banco (target o NPC)         | Todos, o los trabajos fijados en ese punto | Abre el banco.                            |
| Prop de cajero o punto de cajero          | Quien lleve una tarjeta activa             | Abre el cajero tras el PIN.               |
| Jugador cercano, con el talonario abierto | Jefes                                      | Emite un cheque de empresa a ese jugador. |

## Ítems usables

| Ítem              | Quién               | Qué hace                                                                                     |
| ----------------- | ------------------- | -------------------------------------------------------------------------------------------- |
| `bank_cheque`     | Quien lo tenga      | Muestra el cheque en pantalla.                                                               |
| `bank_chequebook` | Jefes de un trabajo | Abre el talonario unos segundos para emitir un cheque de empresa. Usarlo otra vez lo guarda. |
| `printerdocument` | Quien lo tenga      | Muestra el recibo impreso en pantalla.                                                       |

Los nombres son los valores por defecto de `data/cheques.lua` y `data/accounts.lua`.

## Permisos

### Staff

Un jugador es staff del banco cuando tu framework le concede el permiso de `admin.permission`, `'admin'` por defecto. El banco se lo pregunta al framework a través de `cuxial_bridge`; no lee grupos ACE directamente.

{% tabs %}
{% tab title="QBox / QBCore" %}
El jugador necesita el permiso `admin` del framework.
{% endtab %}

{% tab title="ESX" %}
El jugador necesita el grupo `admin` o `superadmin`.
{% endtab %}
{% endtabs %}

Cada acción del panel vuelve a comprobar el permiso en el servidor y queda anotada en el registro de auditoría.

Para restringir además el comando por ACE, indica un grupo:

{% code title="shared/config.lua" %}

```lua
commands = {
    admin = { name = 'bankadmin', restricted = 'group.admin' },
},
```

{% endcode %}

{% hint style="info" %}
Con `restricted = false`, el valor por defecto, cualquiera puede escribir el comando, y quien no tenga el permiso de staff recibe una negativa.
{% endhint %}

### Jugadores

| Función                   | Requisito                                                                                                 |
| ------------------------- | --------------------------------------------------------------------------------------------------------- |
| Cuenta personal           | Estar en una sucursal.                                                                                    |
| Cuenta de empresa         | Ser jefe del trabajo.                                                                                     |
| Cuenta compartida         | Ser el titular, o un miembro con el permiso de esa operación: depositar, retirar, transferir o préstamos. |
| Cajero                    | Llevar una tarjeta activa y saber su PIN.                                                                 |
| Cheque de empresa         | Ser jefe del trabajo y llevar el talonario.                                                               |
| Punto limitado a trabajos | Tener uno de los trabajos fijados en ese punto.                                                           |


---

# 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-banking/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.
