> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Open billing menu

> Abre el menú de Billing UI directamente para un objetivo conocido, sin requerir que el jugador haga clic en uno.

Trigger para abrir el menú de Billing UI sin requerir que el jugador seleccione al jugador objetivo con el ratón.

```lua Event theme={null}
TriggerEvent("billing_ui:openBillingMenu", targetServerID)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `targetServerID` | integer | ID de servidor del objetivo, o `nil` |

## Ejemplo

```lua theme={null}
local closestPlayer = ESX.Game.GetClosestPlayer()
local targetPlayerId = GetPlayerServerId(closestPlayer)

TriggerEvent("billing_ui:openBillingMenu", targetPlayerId)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.