Server Callbacks

All Server Callbacks for msk_banking

You need msk_core! - Download it here

hasBankcard

Retuns hasBankcard - boolean - if The Player has a Bankcard or not

local hasBankcard = MSK.Trigger('msk_banking:hasBankcard')

getMainAccount

Retuns mainAccount - table <identifier, cash, bank, iban> - The data of the main account

local mainAccount = MSK.Trigger('msk_banking:getMainAccount')

getSecondAccount

Retuns secondAccount - table <identifier, bank, iban> - The data of the second account

local secondAccount = MSK.Trigger('msk_banking:getSecondAccount')

getSocietyAccounts

Parameters jobname - string - The job you want the data from

Retuns societyAccount - table <identifier, bank, iban, name, label> - The data of the society account

local societyAccount = MSK.Trigger('msk_banking:getSocietyAccounts', 'police')

--[[
societyAccount.identifier -- 'police'
societyAccount.bank -- 5035
societyAccount.iban -- 'SALSPD'
societyAccount.name -- 'society_police'
societyAccount.label -- 'LSPD'
]]

getPIN

Retuns pin - string - PIN

local pin = MSK.Trigger('msk_banking:getPIN')

getInvestment

Retuns invest - number - The current Invesment Amount as a number

local invest = MSK.Trigger('msk_banking:getInvestment')

Last updated