ระบบบัญชี (Accounts)
ภาพรวม
ที่อยู่ไฟล์
ฟังก์ชัน
GetAccount
พารามิเตอร์
ประเภท
คำอธิบาย
-- ตัวอย่างการดึงบัญชีเดียว
local bankAccount = AFUCore.GetAccount('bank')
if bankAccount then
print(string.format('%s: $%d', bankAccount.label, bankAccount.money))
end
-- ตัวอย่างการดึงหลายบัญชี
local accounts = AFUCore.GetAccount({'bank', 'black_money'})
for name, account in pairs(accounts) do
print(string.format('%s: $%d', account.label, account.money))
endGetMoney
GetAccountMoney
พารามิเตอร์
ประเภท
คำอธิบาย