# Money

Retrieve the local player's money balance from the client side via a server callback.

## GetMoney

Fetches the player's cash and bank balance asynchronously.

```lua
KOJA.Client.GetMoney(callback)
```

| Parameter  | Type                   | Description            |
| ---------- | ---------------------- | ---------------------- |
| `callback` | `function(cash, bank)` | Called with the result |

**Callback parameters**

| Parameter | Type     | Description  |
| --------- | -------- | ------------ |
| `cash`    | `number` | Cash on hand |
| `bank`    | `number` | Bank balance |

**Example**

```lua
KOJA.Client.GetMoney(function(cash, bank)
    print('Cash:', cash)
    print('Bank:', bank)
end)
```

**Example — show in UI**

```lua
KOJA.Client.GetMoney(function(cash, bank)
    SendNUIMessage({
        action = 'updateMoney',
        cash   = cash,
        bank   = bank,
    })
end)
```

:::hint{type="info"}
* This function triggers a server callback internally. The result is never available on the same tick — always use the callback.
* To add or remove money from a player, use the [server-side money API](/koja-lib/api-reference/server-api/money).
:::

## Related pages

- [Callbacks](/koja-lib/api-reference/client-api/callbacks) — koja-lib provides a callback system that lets client scripts request data from the server and vice versa.
- [Inventory](/koja-lib/api-reference/client-api/inventory) — Client-side inventory functions let you check what items the local player has without a server round-trip.
- [DUI](/koja-lib/api-reference/client-api/dui) — DUI (Dynamic UI) allows you to render a web page as a texture on any in-game surface — screens, billboards, laptops, phones, etc.
- [Keybinds](/koja-lib/api-reference/client-api/keybinds) — Register persistent key bindings that players can rebind in the GTA V settings menu.
- [Notifications](/koja-lib/api-reference/client-api/notifications) — koja-lib provides two notification interfaces: SendNotify (routes through the configured backend) and LibNotify (built-in koja-lib notification).
- [Player](/koja-lib/api-reference/client-api/player) — Functions for reading the local player's data on the client side.
- [Client API](/koja-lib/api-reference/client-api) — back to the section overview
