Events
Server-side
banking:initCharacterAccount
Initialize (and create if doesn't exist) a character's bank account object.
TriggerEvent("banking:initCharacterAccount", charId --[[int]], function(account --[[table]])
print("Initialised account: "..account.get("name"));
end);
-- charId: character ID of account owner
-- account: returned account object through callback
banking:initBusinessAccount
Initialize (and create if doesn't exist) a business' bank account object.
- The
characters
andcharacterData
field follow the format of characters and characterData.
TriggerEvent("banking:initBusinessAccount", accountName --[[string]], accountLabel --[[string]], characters --[[table]], characterData --[[table]], function(account --[[table]])
print("Initialised account: "..account.get("name"));
end);
-- accountName: name of account to initialise
-- accountLabel: label of account if creating
-- characters: default characters if creating
-- characterData: default characterData if creating
-- account: returned account object through callback