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