Skip to main content

Server Callbacks

danger

You need msk_core! — Download it here

hasBankcard

Returns
hasBankcard - boolean - If the Player has a Bankcard or not

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

getMainAccount

Returns
mainAccount - table <identifier, cash, bank, iban>

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

getSecondAccount

Returns
secondAccount - table <identifier, bank, iban>

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

getSocietyAccounts

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

Returns
societyAccount - table <identifier, bank, iban, name, label>

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

Returns
pin - string - PIN

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

getInvestment

Returns
invest - number - The current Investment Amount

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