BenoursonJ/ESX-Banker-Job-Upgraded

Problem with loans

Opened this issue · 1 comments

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

Great insight !
I'll work on it !