Server Exports
REMEMBER ABOUT CLIENT SIDE AND SERVER SIDE IN CHOOSING EXPORT!
Generate Unique IBAN
Use following export to generate unique IBAN number
local newIBAN = exports['p_banking']:generateUniqueIBAN()
print(newIBAN)Return:
newIBAN:
string
Generate Unique Card Number
Use following export to generate unique Card Number
local cardNumber = exports['p_banking']:generateUniqueCardNumber()
print(cardNumber)Return:
cardNumber:
string
Update Credit Score
Use following export to update credit score for player
identifier:
stringExisting player identifier
score:
numberScore to add or remove
Create History
Use following export to create transaction history for account
iban:
stringIban account to add transaction
type:
stringType of transaction, can be income / outcome
amount:
numberAmount to display in history
title:
stringTitle of transaction
from:
stringName of transaction sender
to:
stringName of transaction receiver
Return:
transactions:
tableAll account transactions
Get Player Accounts
Use following export to get player accounts
Return:
accounts:
tableid:
numbername:
stringowner:
stringiban:
stringbalance:
numberrole:
owner / usertype:
personal / society / sharedcredit_score:
numberlogs:
tabletransactions:
tableinvoices:
tableusers:
tablecards:
table
addAccountMoney
Use following export to add money to account
identifier:
stringIBAN of existing account / Job Name / Player Identifier
amount:
numberAmount to add into account balance
Return:
result:
booleanreturn
trueorfalseif action finished succesfully or not
removeAccountMoney
Use following export to remove money from account
identifier:
stringIBAN of existing account / Job Name / Player Identifier
amount:
numberAmount to remove from account balance
Return:
result:
booleanreturn
trueorfalseif action finished succesfully or not
getAccountMoney
Use following export to get account money
identifier:
stringIBAN of existing account / Job Name / Player Identifier
Return:
money:
numberAccount Balance
createInvoice
Use following export to create invoice
toIban:
stringIBAN which will receive invoice
fromIban:
stringIBAN which will receive money from invoice
fromName:
stringDisplayed name in invoices section
amount:
numberInvoice amount
title:
stringTitle of invoice
Return:
result:
boolean
Last updated