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")

Last updated