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