🛠️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.

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

Get Players Password

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

Give Credit Point To Players

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.

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

Example Usage:

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.

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

Example usage:

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

Last updated