/banking-system

Banking system which allows players to add, remove or transfer money from personal and common accounts.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Banking System

A banking system that allows players to add, withdraw or transfer money from their personal and common accounts.

🇫🇷 Here

This banking system was made entirely (mockup, front-end, lua) by Sinyx for the Starling City project, since we don't use the script anymore i decided to put this script on github (with the developer's consent of course)

Compatible with :

  • ESX Legacy
  • ESX V1 (including sub versions)

Features :

  • Common account system (maximum 3)
  • Money transfer
  • Cache system (to avoid too many sql requests)
  • Purchase history
  • Password system to connect to your bank account

⚠️ Becareful, this script replaces completely the banking system of ESX, it will be necessary to adapt some things in order to adapt your scripts to the banking system.

To adapt your scripts go see how to use Exports (server side)

Purchase History

For each payment, you have a history, for example when you withdraw money from an ATM you will see in your history that you have withdrawn money from an ATM (with a small icon), in the configuration you must add your "service" (in the table servicesType), then when you are going to use an export to withdraw or add money to a player you will put the id (in which order is your service), if we take the driving school for example, which is in the config, the id of the service would be 7 (in Lua a table always starts from 1), then when you are going to use the export, the 3rd argument after the amount will be your id to put.

ESX Salary [Jobs]

For the ESX salary system, the bank system needs es_extended however to use the bank system on salaries, it must be started before es_extended

How to adapt salary ?

Here is an example of how start the cfg

ensure mysql-async
ensure banking-system
ensure es_extended

⚠️ Do not change the name of the resource or the visual interface (NUI) will not work.

You can have support on our Discord (FR/ENG)

Capture d’écran 2022-04-27 223321 Capture d’écran 2022-04-27 223344 Capture d’écran 2022-04-27 223359