Tokio Posted February 2, 2018 Share Posted February 2, 2018 I downloaded this bank script: https://community.multitheftauto.com/index.php?p=resources&s=details&id=7596 , but how to get balance from other script, and from client side? I tried lots of options, but but in vain.. Anyone can help? Link to comment
Addlibs Posted February 2, 2018 Share Posted February 2, 2018 (edited) 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 February 2, 2018 by MrTasty 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now