mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-11-25 16:58:35 +00:00
Better account loading + ps-progressbar support
This commit is contained in:
1 parent
eb31c78bc6
commit
c3d6425476
2 files changed
+46
-39
No files matched your search
+9
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user