config/accounts.lua holds these settings. Every option is explained in the comments below.
Runs on: shared. This file stays editable when the resource is escrow-protected. Restart the resource after a change.
Config = Config or {}
Config.Accounts = {
-- ─────────────────────────────────────────
-- IBAN — tokens: {prefix} {#} a digit {A} a letter {X} a letter or digit
-- {NAME} society name in capitals (society format only)
-- A new IBAN is checked against the database, so it is always unique.
-- ─────────────────────────────────────────
iban = {
prefix = 'APS',
personal = '{prefix}-{X}{X}{X}{X}{X}{X}{X}{X}',
savings = '{prefix}-SAV-{#}{#}{#}{#}{#}{#}{#}{#}',
shared = '{prefix}-JNT-{#}{#}{#}{#}{#}{#}{#}{#}',
society = '{prefix}-SOC-{NAME}',
},
personal = {
-- Also list bank money other scripts add or remove (paychecks, shops …)
logExternal = true,
},
transfers = {
minAmount = 1,
maxNote = 80,
-- 0 = free. Percent of the amount, taken on top from the sender.
feePercent = 0,
},
-- A frozen account can't send money. With this on it can still receive.
frozenAcceptsIncoming = true,
shared = {
createPrice = 5000, -- paid from the personal account
maxOwned = 3, -- accounts one player can own
maxMembers = 8, -- not counting the owner
memberAdd = true, -- members may pay in
memberRemove = true, -- members may withdraw and transfer
nameLength = 32,
},
-- ─────────────────────────────────────────
-- Society accounts
-- minGrade job → lowest grade that can use the account.
-- Jobs not listed use `default`; bosses always can.
-- jobs false = every job gets an account
-- or a list: { 'police', 'ambulance' }
-- ignore jobs that never get one
-- ─────────────────────────────────────────
society = {
jobs = false,
ignore = { 'unemployed', 'none' },
gangs = true,
default = 3,
minGrade = {
-- police = 4,
},
gangDefault = 2,
},
}
