codeReal Documentation
  • 👋Welcome to codeReal Documentation
  • Normal Series
    • đŸĻBank
      • âŦ‡ī¸Installation
      • â„šī¸Information
      • đŸ› ī¸Exports
    • 👮Dispatch
      • âŦ‡ī¸Installation
      • â„šī¸Information
      • đŸ› ī¸Exports
    • 🏠House
      • âŦ‡ī¸Installation
      • â„šī¸Information
  • Aqua Series
    • 🚘Vehicleshop
      • âŦ‡ī¸Installation
      • âš™ī¸Configuration
      • â„šī¸Information
Powered by GitBook
On this page
  • Get Players IBAN
  • Get Players Password
  • Give Credit Point To Players
  • Send Log/Transaction
  • Example Usage:
  • Send Log/Transaction To A Offline Player
  • Example usage:
  1. Normal Series
  2. Bank

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.

In the source section, you type the source of the player you want to send the log to.

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')
PreviousInformationNextDispatch

Last updated 1 year ago

đŸĻ
đŸ› ī¸