Kartik Scripts

GetCompanyFunds

exports['kartik-properties']:GetCompanyFunds(companyId)

🔹 Description

Returns the current bank balance of a real-estate company registered in kartik-properties (kp_companies.funds).


🔧 Parameters

NameTypeRequiredDescription
companyIdnumber | string✅The company id.

📤 Returns

TypeDescription
numberThe company's funds. Returns 0 if the company does not exist.

🧠 Example Usage

local funds = exports['kartik-properties']:GetCompanyFunds(3)
if funds >= 50000 then
    print('Company can afford the purchase.')
end

On this page