> For the complete documentation index, see [llms.txt](https://jota-dev-documentation.gitbook.io/jota-dev-docs-hidden/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jota-dev-documentation.gitbook.io/jota-dev-docs-hidden/basics/interactive-blocks/exports/server.md).

# Server

## Check if the player has enough cash and pays

```lua
exports['jc_real_money']:PayCash(source, amount)
```

* `source` *(number)* →Player ID
* `amount` *(number)* → Quantity to be checked

***

## Give money to a player

```lua
exports['jc_real_money']:AddCash(source, amount)
```

* `source` *(number)* →Player ID
* `amount` *(number)* → Quantity to be checked

***

## It gives the player's total cash by adding up all the bills

```lua
exports['jc_real_money']:GetCashTotal(source)
```

* `source` *(number)* →Player ID
