API and Exports
The SRC Advanced Banking system provides a robust set of exports and events, allowing developers to integrate banking, loans, and credit scoring into their own resources.
Client-Side Exports
Open Bank UI
Opens the main banking tablet or teller interface.
-- mode: 'tablet' or 'atm'
-- atmId: 'teller' or a specific ATM ID (optional)
exports['src-bank']:OpenBank(mode, atmId)Open Teller
Quickly opens the bank teller interface.
exports['src-bank']:OpenTeller()Open ATM
Quickly opens the interface for a specific ATM.
exports['src-bank']:OpenATM(atmId)Close Bank UI
Forcefully closes the banking interface.
Check if Bank is Open
Returns true if the banking UI is currently active.
Get Closest ATM
Finds the ID of the ATM nearest to the player based on the configuration.
Server-Side Exports
Get IBAN
Retrieves the IBAN associated with a player's citizen ID.
Get Credit Score
Retrieves the current credit score for a player.
Update Credit Score
Adjusts a player's credit score by adding or removing points.
Add Transaction
Manually inserts a custom transaction into a player's bank history.
Society Banking Exports
Manage organization and society bank accounts.
Get Society Balance
Retrieves the current balance of a society account.
Add Society Money
Adds money to a society bank account.
Remove Society Money
Removes money from a society bank account.
Get or Generate Society Account
Retrieves IBAN and balance, or creates the account if it doesn't exist.
Programmatic Transfer
Performs a bank transfer between two players entirely via script.
Check Blacklist
Checks if a player is blacklisted from taking out new loans.
Events
Client Events
src-bank:client:bankRefresh
Triggered whenever the bank data is updated (balance changes, loans paid, etc.). Use this to sync your UI if you have custom banking widgets.
src-bank:client:syncBalance
Triggered for minor balance updates.
Last updated

