Better account loading + ps-progressbar support

This commit is contained in:
Jim Shield
2022-05-21 11:23:36 +01:00
committed by GitHub
parent eb31c78bc6
commit c3d6425476
2 changed files with 46 additions and 39 deletions

View File

@@ -229,8 +229,15 @@ QBCore.Functions.CreateCallback('jim-payments:ATM:Find', function(source, cb)
aid = getSavingsAccount[1].record_id
savbal = getSavingsAccount[1].amount
end
cb(name, cash, bank, account, cid, savbal, aid)
local data = {
name = name,
cash = cash,
bank = bank,
account = account,
cid = cid,
savbal = savbal,
aid = aid }
cb(data)
end)
QBCore.Commands.Add("cashgive", "Pay a user nearby", {}, false, function(source) TriggerClientEvent("jim-payments:client:ATM:give", source) end)