GetPropertyData
luaexports.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 ID - label:
stringThe property label/name - address:
stringThe property address - price:
numberThe property purchase price - rentPrice:
numberThe property rent price - type:
stringThe property type (shell, ipl, mlo) - buildingId:
numberThe building ID if the property is inside a building - forSale:
booleanWhether the property is for sale - forRent:
booleanWhether the property is for rent - doorLocked:
booleanWhether the property door is locked - metadata:
tableAdditional property metadata including enterData, exitCoords, yardZone, points, and inventoryData - furniture:
tableFurniture data with inside and outside arrays - additionalLocks:
tableArray of additional locks with id and label - inventories:
tableArray of inventory data with id, label, coords, slots, and weight - rentData:
tableRental information including identifier, type, dates, and price - owner:
stringThe property owner identifier - ownerType:
stringThe type of owner (user or society) - keyHolders:
tableArray of key holder identifiers - purchaseDate:
stringThe date the property was purchased - purchasePrice:
numberThe price the property was purchased for - renter:
stringThe current renter identifier (if rented) - renterType:
stringThe type of renter (user or society)