BenoursonJ / ESX-Banker-Job-Upgraded

New Banker Job with functionnalities such as loans, savings with custom rates, risked savings, inventory and so on...
GNU General Public License v3.0
11 stars 10 forks source link

Problem with loans #2

Open GWhite01 opened 3 years ago

GWhite01 commented 3 years ago

Hi, First of all I must tell you that you made an amazing job !

But here is my problem : I read all your server script and I noticed that if a player that made a loan is connected while the cron job starts, he won't loose money. For me if the player is connected, the change of his bank account in the database will be erased when he will be saved by the server. I think you should first check whether or not the player is connected and then, if he is connected, you can remove his money directly with a xPlayer.removeAccountMoney

BenoursonJ commented 3 years ago

Great insight ! I'll work on it !