Server side

🆔 Accounts

GetSocietyAccount

---@param society string - Society id(police, mechanic...)
exports['tgg-banking']:GetSocietyAccount(society)

GetAccountByIban

---@param iban number - The IBAN of the account
exports['tgg-banking']:GetAccountByIban(iban)

GetPersonalAccountByPlayerId

---@param playerId number - The session id(source) of the player(0, 25, 150...)
exports['tgg-banking']:GetPersonalAccountByPlayerId(playerId)

GetPersonalAccountByPlayerIdentifier

---@param identifier string The identifier of the player(citizenid, identifier)
exports['tgg-banking']:GetPersonalAccountByPlayerIdentifier(identifier)

💵 Money

GetAccountMoneyByIban

---@param iban number - The IBAN of the account
---@returns number | nil - Account money or nil if the account is not found.
exports['tgg-banking']:GetAccountMoneyByIban(iban)

GetSocietyAccountMoney

---@param society string - Society id(police, mechanic...)
exports['tgg-banking']:GetSocietyAccountMoney(society)

AddSocietyMoney

---@param society string - Society id(police, mechanic...)
---@param amount number - The amount you want to add to the account
exports['tgg-banking']:AddSocietyMoney(society, amount)

RemoveSocietyMoney

---@param society string - Society id(police, mechanic...)
---@param amount number - The amount you want to add to the account
exports['tgg-banking']:RemoveSocietyMoney(society, amount)

Feel free to request an export to suit your needs.

Last updated