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
| Name | Type | Required | Description |
|---|---|---|---|
companyId | number | string | ✅ | The company id. |
📤 Returns
| Type | Description |
|---|---|
number | The 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