> For the complete documentation index, see [llms.txt](https://oph3zdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oph3zdev.gitbook.io/docs/free/bank/exports.md).

# Exports

Exports you can use from other resources to get information

## Get Players IBAN

If you write **true** in IsSource it will use the player's source, if you write **false** in IsSource it will use the player's identifier.

```lua
exports['real-bank']:GetIBAN(source, identifier, IsSource)
```

## Get Players Password

```lua
exports['real-bank']:GetPassword(iban)
```

## Give Credit Point To Players

```lua
exports['real-bank']:GiveCredit(source, amount)
```

## Send Log/Transaction

***recieved***: If a player has sent money to you, you can write in this section, for example, the iban/name/surname/id of the player who sent money

***sendedto***: If you sent money to a player, you can write the iban/name/surname/id of the player you sent money to

***type***: 'Received' - 'Withdraw' - 'Deposit' - 'Transfer' - 'Shopping'

***pp***: If you type 'discord' here, it will get the player's discord profile picture. Or you can type a link as you like.

{% hint style="danger" %}
In the **source** section, you type the source of the player you want to send the log to.
{% endhint %}

```lua
exports['real-bank']:SendLog(source, received, sendedto, type, amount, pp)
```

### Example Usage:

```lua
exports['real-bank']:SendLog(targetsource, source, '', 'Received', 1500, 'discord')
```

## Send Log/Transaction To A Offline Player

Using this export you can send log to players who are offline. I used this in the transfer section, it might not be needed functionally but you can use it if you want.

```lua
exports['real-bank']:SendOfflineLog(sendersource, identifier, playername, received, sendedto, type, amount, pp) 
```

### Example usage:

```lua
exports['real-bank']:SendOfflineLog(src, recievers.identifier, recievers.name, senderplayername, nil, 'Received', tonumber(amount), 'discord')
```
