Jump to content

[REL] Bank system[SQLite: No element/account data]


remaked

Recommended Posts

Bank system:

So basically this is a bank system where players can deposit their money, it's using SQLite  and tables to save/load data, there is no element/account data so the performance is expected to be great.

Features: 

- Registering a bank account including a PIN for safety.

- Ability to change your PIN.

- Ability to deposit/withdraw money.

- Ability to transfer money even to offline accounts.

- You can add ATMs easily wherever you want by modifying the coordinates tables in the script.

- All bank accounts and their information is saved using SQLite.

- Exported functions for admins:

    - exports.banking_system:getPlayerPIN(plr) -- get a player's PIN

    - exports.banking_system:getAccountPIN(accountName) -- get an account PIN

    - exports.banking_system:setPlayerPIN(plr, PIN) -- set a player's PIN, PIN should be a 4-digit number

    - exports.banking_system:setAccountPIN(accountName, PIN) -- set an account's PIN, PIN should be a 4-digit number

    - exports.banking_system:getPlayerBankCash(plr) -- get  a player's amount of cash in his bank account

    - exports.banking_system:getAccountBankCash(accName) -- get an account's amount of cash in that account's bank account.

    - exports.banking_system:setPlayerBankCash(plr, amount) -- set a player's amount of cash in his bank account.

    - exports.banking_system:setAccountBankCash(accName, amount) -- set an account's amount of cash in that account's bank account.

 

LINK: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18441

 

NOTE: You can post here about any bugs you may encounter.

Edited by remaked
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...