Kartik Scripts

GetCreditScore

*

๐Ÿ”ง Function

exports['kartik-banking']:GetCreditScore(identifier, bankType)

๐Ÿ“ฅ Parameters

NameTypeRequiredDescription
identifierstringโœ… YesThe unique identifier of the account holder. Can be a Citizen ID or Job ID.
bankTypestringโŒ NoThe type of bank account to look up. Defaults to "fleeca" if not provided.

๐Ÿ“ค Returns

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

On this page