GetPropertyData
exports.nolag_properties:GetPropertyData(propertyId)Parameters
propertyId:
numberThe property id
Return Value
The following table, or nil if the property doesn't exist:
id:
numberThe property IDlabel:
stringThe property label/nameaddress:
stringThe property addressprice:
numberThe property purchase pricerentPrice:
numberThe property rent pricetype:
stringThe property type (shell, ipl, mlo)buildingId:
numberThe building ID if the property is inside a buildingforSale:
booleanWhether the property is for saleforRent:
booleanWhether the property is for rentdoorLocked:
booleanWhether the property door is lockedmetadata:
tableAdditional property metadata including enterData, exitCoords, yardZone, points, and inventoryDatafurniture:
tableFurniture data with inside and outside arraysadditionalLocks:
tableArray of additional locks with id and labelinventories:
tableArray of inventory data with id, label, coords, slots, and weightrentData:
tableRental information including identifier, type, dates, and priceowner:
stringThe property owner identifierownerType:
stringThe type of owner (user or society)keyHolders:
tableArray of key holder identifierspurchaseDate:
stringThe date the property was purchasedpurchasePrice:
numberThe price the property was purchased forrenter:
stringThe current renter identifier (if rented)renterType:
stringThe type of renter (user or society)