Society accounts
Set up society accounts and permissions for jobs, gangs and Ox financial groups.
Society accounts let members of a job, gang or Ox financial group access their group's money through the bank. Banking finds the player's groups and creates the account when needed.
Setup#
- Set
frameworkin Banking'sconfig/config.luatoqbx,qb,esxorox. See Configuration. - Set
societyBankin the same file to the bank that should hold society accounts, such asmaze. - Set up the group's membership and permissions in your framework as described below.
- Restart Banking. An eligible member can open Banking and select the society account.
Qbox and QBCore#
Configure job and gang grades in your framework's shared jobs and gangs files:
[4] = {
name = 'Chief',
isboss = true, -- Full society banking access
},
[3] = {
name = 'Manager',
bankAuth = true, -- Can manage society money
},Bosses and grades with bankAuth can view the account, deposit, withdraw, transfer and use invoices. Other members can view the account and its history.
ESX#
Set the job grade's name to boss in the job_grades database table to give that grade society banking access. Other members of the job can view the account and its history.
ox_core#
Enable hasAccount for the group in ox_core, set its accountRoles for the appropriate grades and configure the native account permissions. Members see the group's existing Ox account. Their Ox permissions control actions such as deposits, withdrawals, transfers, invoices and viewing history.
Society balances and other scripts#
Qbox, QBCore and ESX society accounts use Stormix's balance; they do not automatically share balances with other banking or society resources. Ox groups use their native Ox account balance.
Other server resources can read or change society balances with the provided exports.