# Client

### openATM

Opens the ATM

<mark style="color:red;">**Parameters**</mark>\
**checkPin** - `boolean` - Check the pin before opening the ATM

```lua
-- Opens the ATM without checking the Pin
exports.msk_banking:openATM()

-- Opens the ATM and checking the Pin before opening
exports.msk_banking:openATM(true)
```

### checkPin

Opens the Numpad or Input to insert the pin, if the pin is correct it opens the ATM.

```lua
exports.msk_banking:checkPin()
```

### getBankingInfo

<mark style="color:red;">**Parameters**</mark>\
**checkBankcard** - `boolean` - Check if the player has a Bankcard

<mark style="color:green;">**Returns**</mark>\
**mainAccount** - `table <identifier, cash, bank, iban>` - The data of the main account\
**secondAccount** - `table <identifier, bank, iban>` - The data of the second account\
**hasBankcard** - `boolean` - if The Player has a Bankcard or not. If set to `false` then it's always `true`

```lua
local mainAccount, secondAccount, hasBankcard = exports.msk_banking:getBankingInfo(true)
```

### getSocietyInfo

<mark style="color:red;">**Parameters**</mark>\
**jobname** - `string` - The job you want the data from - ***Optional***

<mark style="color:green;">**Returns**</mark>\
**societyAccount** - `table <identifier, bank, iban, name, label>` - The data of the society account

```lua
-- Return the Account of your own job (ESX.PlayerData.job.name)
local societyAccount = exports.msk_banking:getSocietyInfo()
-- Return the Account of the given job
local societyAccount = exports.msk_banking:getSocietyInfo('police')

--[[
societyAccount.identifier -- 'police'
societyAccount.bank -- 5035
societyAccount.iban -- 'SALSPD'
societyAccount.name -- 'society_police'
societyAccount.label -- 'LSPD'
]]
```

### getCartridgeBursted

<mark style="color:red;">**Parameters**</mark>\
**playerId** - `string|number` - The ServerId of the player

<mark style="color:green;">**Returns**</mark>\
**bursted** - `boolean` - whether a Cartridge is Bursted or not while an ATM Robbery

```lua
local bursted = getCartridgeBursted(playerId)
```
