mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 23:01:36 +00:00
Optimization
This commit is contained in:
+3
-1
@@ -107,7 +107,9 @@ function CalculateBankSavings(d, h, m)
|
||||
local interests = math.floor(account.money / 100 * Config.BankSavingPercentage)
|
||||
bankInterests = bankInterests + interests
|
||||
|
||||
account.addMoney(interests)
|
||||
table.insert(asyncTasks, function(cb)
|
||||
account.addMoney(interests)
|
||||
end)
|
||||
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user