Jump to content

[HELP] How to get my bank balance from this script?


Tokio

Recommended Posts

Exports:

int getBankID(string bankName/marker bankMarker) --Returns ID of the specified bank.
marker getBankMarker(string bankName/int bankID) --Gets bank marker by ID or name.
table getBankMarkers() --Returns a table containing all bank markers.
marker getBankEntranceMarker(string bankName/int bankID/marker bankMarker) --Gets bank's entrance marker.
marker getBankExitMarker(string bankName/int bankID/marker bankMarker) --Gets bank's exit marker.
int countBanks() --Returns number of banks.
bool/int setBankAccountBalance(string accountName/player playerElement, int/string newbalance [, table SQLData ]) --Sets bank account new balance. Returns new balance is set successfully, false otherwise.
bool/int getBankAccountBalance(string accountName/player playerElement [, table SQLData ]) --Gets the specified account balance.

bool isPlayerInBank(player playerElement [, int bankID/marker bankMarker ]) --Checks if player is in a bank.
table getPlayersInBank(int bankID/marker bankMarker/string bankName) --Returns a table containing players who are in specific bank.
marker getPlayerBank(player playerElement) --Gets bank marker in which specified player is standing.

bool withdrawPlayerMoney(player playerElement, int amount [, table SQLData ]) --Withdraws money from specific player's account.
bool depositPlayerMoney(player playerElement, int amount [, table SQLData ]) --Deposits specified player's specific amount of money.

So simply do exports["bank-reloaded"]:getBankAccountBalance(playerElement)

Edited by MrTasty
  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...