Server Callbacks

All Server Callbacks for msk_banking

You need msk_core! - Download it here

The Server Callbacks are SYNCHRON

hasBankcard

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

mainAccount

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

-- Returns the following
local identifier = mainAccount.identifier -- license:1334h34536
local cash = mainAccount.cash -- Cash
local bank = mainAccount.bank -- Bankmoney
local iban = mainAccount.iban -- IBAN

secondAccount

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

-- Returns the following
local identifier = secondAccount.identifier -- license:1334h34536
local bank = secondAccount.bank -- Bankmoney
local iban = secondAccount.iban -- IBAN

societyAccount

local job = MSK.TriggerCallback('msk_banking:getSocietyAccounts', jobName)

-- Example
local job = MSK.TriggerCallback('msk_banking:getSocietyAccounts', 'police')

-- Returns the following
local identifier = job.identifier -- 'police'
local bank = job.bank -- Bankmoney
local iban = job.iban -- IBAN
local name = job.name -- 'society_police'
local label = job.label -- 'LSPD'

getPIN

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

getInvestment

Returns the current Invesment Amount as a number

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

Last updated