GetCreditScore
*
๐ง Function
exports['kartik-banking']:GetCreditScore(identifier, bankType)๐ฅ Parameters
| Name | Type | Required | Description |
|---|---|---|---|
identifier | string | โ Yes | The unique identifier of the account holder. Can be a Citizen ID or Job ID. |
bankType | string | โ No | The type of bank account to look up. Defaults to "fleeca" if not provided. |
๐ค Returns
| Type | Description |
|---|---|
int | The user's credit score. Returns 0 if not found. |
๐ Example
local citizenId = "abc123"
local creditScore = exports['kartik-banking']:GetCreditScore(citizenId)
print("Credit Score:", creditScore) -- Output: Credit Score: 720 (for example)-- For job-based account
local creditScore = exports['kartik-banking']:GetCreditScore("mechanic", "fleeca")