> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/billing-ui/client/open-billing-menu.md).

# Open billing menu

Trigger to open the billing UI menu without making the player to select the target player with the mouse

## Event

```lua
TriggerEvent("billing_ui:openBillingMenu", targetServerID)
```

### Parameters

| Name             | Data Type | Description             |
| ---------------- | --------- | ----------------------- |
| `targetServerID` | integer   | Target server ID or nil |

## Example

```lua
local closestPlayer = ESX.Game.GetClosestPlayer()
local targetPlayerId = GetPlayerServerId(closestPlayer)

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