Kartik Scripts

Server Exports

Server-side exports exposed by kartik-properties. Call these from any server script.

ExportReturns
GetCitizenPropertiesOwned + leased property records for a citizen
GetPlayerHousingDataNormalized phone housing records array
GetPropertyHousingDataNormalized housing data for a specific house
GetAllPropertiesEvery property as shaped records
GetPropertyByIdOne shaped property record, or nil
GetPlayerPropertiesRaw kp_properties rows a citizen owns
GrantHousingKeyGrants key access to a citizen ID
RevokeHousingKeyRevokes key access from a citizen ID
SetPropertyLockedToggles / sets property front door lock state
GetCompanyFundsA company's bank balance
IsPlayerInPropertyProperty id a player is inside, or nil
AddFurnitureItemRegisters a runtime furniture definition
AssignStarterApartmentLeases a starter unit to a player (boolean)

🚗 External garage API

Read-only, citizen-id based exports for third-party garage resources. Property garages save vehicles with garage = 'kp_prop_<propertyId>'; these exports let a garage script resolve that id, list it, and check access. See Garages → External garage resources.

ExportReturns
IsPropertyGarageWhether a garage id belongs to kartik-properties
GetPropertyGarageOne garage record, or nil
GetPropertyGaragesEvery property garage a citizen may use
CanUsePropertyGarageWhether a citizen may open that garage
GetPropertyGarageVehiclesVehicles a citizen has parked there
GetPropertyGarageSlotsused, total slots for a citizen

📦 The shaped property record

GetCitizenProperties, GetAllProperties and GetPropertyById all return records in the same normalised shape:

FieldTypeDescription
idnumberProperty id (kp_properties.id).
labelstringDisplay name of the property.
unitNostringUnit number for multi-unit entrances (may be nil).
shellstringInterior shell key.
coordstableEntrance position { x, y, z }.
ownerTypestring"citizen", "company" or "state".
ownerIdstringCitizen id or company id of the owner.
ownerNamestringResolved owner display name (citizen name, company name or "State").
pricenumberSale price.
rentPricenumberRent price (may be 0).
listingstring"none", "for_sale" or "for_rent".
conditionPctnumberProperty condition, 0–100.
blockIdnumberOwning block id (may be nil).
districtstringDistrict name from the block (may be nil).
tenantbooleantrue when the citizen holds this via a lease rather than a deed.

On this page