Exports
Server
GetJobIbanFromName
Returns the iban address of the job from the job name
local iban = exports["tgiann-bank"]:GetJobIbanFromName(jobName)GetGangIbanFromName
Returns the iban address of the gang from the gang name
local iban = exports["tgiann-bank"]:GetGangIbanFromName(jobName)CreatePlayerAccount
Creates a shared account for the player
local iban = exports["tgiann-bank"]:CreatePlayerAccount(src, iban, accountBalance)name
type
src*
number
iban
string
accountBalance
number
CreateJobAccount
Creates a shared account for the player
local iban = exports["tgiann-bank"]:CreateJobAccount(jobName, accountBalance, iban, gradePerms)name
type
jobName*
number
accountBalance
number
iban
string
gradePerms
{
can_withdraw = boolean;
can_deposit = boolean;
can_transfer = boolean;
can_ask = boolean;
}[]
Example
local iban = exports["tgiann-bank"]:CreateJobAccount("police", 0, "P000123PLC001", {
[1] = {
["can_withdraw"] = false,
["can_deposit"] = true,
["can_transfer"] = false,
["can_ask"] = false,
},
[2] = {
["can_withdraw"] = true,
["can_deposit"] = true,
["can_transfer"] = true,
["can_ask"] = true,
},
})CreateGangAccount
Creates a shared account for the player
local iban = exports["tgiann-bank"]:CreateGangAccount(gangName, accountBalance, iban, gradePerms)name
type
gangName*
number
accountBalance
number
iban
string
gradePerms
{
can_withdraw = boolean;
can_deposit = boolean;
can_transfer = boolean;
can_ask = boolean;
}[]
Example
local iban = exports["tgiann-bank"]:CreateGangAccount("ballas", 0, "B000123BLS002", {
[1] = {
["can_withdraw"] = false,
["can_deposit"] = true,
["can_transfer"] = false,
["can_ask"] = false,
},
[2] = {
["can_withdraw"] = true,
["can_deposit"] = true,
["can_transfer"] = true,
["can_ask"] = true,
},
})AddMoney
local success = exports["tgiann-bank"]:AddMoney(iban, amount)AddJobMoney
local success = exports["tgiann-bank"]:AddJobMoney(jobName, amount)AddGangMoney
local success = exports["tgiann-bank"]:AddGangMoney(gangName, amount)RemoveMoney
local success, newBalance = exports["tgiann-bank"]:RemoveMoney(iban, amount)RemoveJobMoney
local success, newBalance = exports["tgiann-bank"]:RemoveJobMoney(jobName, amount)RemoveGangMoney
local success, newBalance = exports["tgiann-bank"]:RemoveGangMoney(gangName, amount)SetMoney
local success = exports["tgiann-bank"]:SetMoney(iban, amount)SetJobMoney
local success = exports["tgiann-bank"]:SetJobMoney(jobName, amount)SetGangMoney
local success = exports["tgiann-bank"]:SetGangMoney(gangName, amount)GetAccountBalance
local balance = exports["tgiann-bank"]:GetAccountBalance(iban)GetJobAccountBalance
local balance = exports["tgiann-bank"]:GetJobAccountBalance(jobName)GetGangAccountBalance
local balance = exports["tgiann-bank"]:GetGangAccountBalance(gangName)Client
BlipsIsOn
local boolean = exports["tgiann-bank"]:BlipsIsOn()DeleteAtmBlips
exports["tgiann-bank"]:DeleteAtmBlips()CreateAtmBlips
exports["tgiann-bank"]:CreateAtmBlips()ToggleAtmBlips
exports["tgiann-bank"]:ToggleAtmBlips(showNotif)Last updated