Society Account
Instruction and guide on how to setup your society account for T1GER resources
Introduction
T1GER Resources supports compatibility with society accounts handled by esx_addonaccount
, qb-banking
or qb-management
.
You can also use a custom society-/shared account resource, however you need to implement the functionality yourself.
Config.SocietyAccount
Config.SocietyAccount = 'esx_addonaccount' -- Set the society account system
Specifies the society account system in use. Update this based on your selected society system.
Type:
string
Options:
'esx_addonaccount'
- ESX addon Account'qb-banking'
- QB Banking'qb-management'
- QB Management'
renewed-banking'
- Renewed Banking'custom'
- You need to make your own integrations!
Setup
This guide will help you setup society account functionality with T1GER Resources.
Functions
These are the functions used in our T1GER resources.
GetSharedAccount
GetSharedAccount(society)
-- parameters: society(string)
-- returns account(table or integer (based on resource return value))
CreateSharedAccount
CreateSharedAccount(society, startBalance)
-- parameters: society(string), startBalance(integer)
-- returns account(table/integer)
GetSharedAccountBalance
GetSharedAccountBalance(society)
-- parameters: society(string)
-- returns balance(integer)
AddSharedAccountMoney
AddSharedAccountMoney(society, m)
-- parameters: society(string), m(integer)
-- void: adds m amount to shared account with society/job name
RemoveSharedAccountMoney
RemoveSharedAccountMoney(society, m)
-- parameters: society(string), m(integer)
-- void: removes m amount from shared account with society/job name
SetSharedAccountMoney
SetSharedAccountMoney(society, m)
-- parameters: society(string), m(integer)
-- void: sets m amount to shared account with society/job name
Last updated