GetPropertyData

exports.nolag_properties:GetPropertyData(propertyId)

Parameters

  • propertyId: number The property id

Return Value

The following table, or nil if the property doesn't exist:

  • id: number The property ID

  • label: string The property label/name

  • address: string The property address

  • price: number The property purchase price

  • rentPrice: number The property rent price

  • type: string The property type (shell, ipl, mlo)

  • buildingId: number The building ID if the property is inside a building

  • forSale: boolean Whether the property is for sale

  • forRent: boolean Whether the property is for rent

  • doorLocked: boolean Whether the property door is locked

  • metadata: table Additional property metadata including enterData, exitCoords, yardZone, points, and inventoryData

  • furniture: table Furniture data with inside and outside arrays

  • additionalLocks: table Array of additional locks with id and label

  • inventories: table Array of inventory data with id, label, coords, slots, and weight

  • rentData: table Rental information including identifier, type, dates, and price

  • owner: string The property owner identifier

  • ownerType: string The type of owner (user or society)

  • keyHolders: table Array of key holder identifiers

  • purchaseDate: string The date the property was purchased

  • purchasePrice: number The price the property was purchased for

  • renter: string The current renter identifier (if rented)

  • renterType: string The type of renter (user or society)