getMarketplaceProperties
lua
It returns every property listed for sale or for rent that is not rented right now. The list is cached and rebuilt when a listing changes. Note the lowercase g in the name.
Return Value
An array of tables:
- id:
numberThe property ID - title:
stringThe property name - address:
string - type:
'shell' | 'ipl' | 'mlo' - price:
numberThe sale price - rentPrice:
numberThe rent price - isForSale:
boolean - isForRent:
boolean - hasYard:
boolean - garage:
string'Garage Available'or'None' - tags:
string[] - images:
string[]Only the first image - tier:
number | nilThe shell tier, for shells - sellerType:
'user' | 'society' - seller:
string | nilThe agency name, when a society sells it - listedAt:
number | nilWhen it was listed, as a Unix timestamp - coords:
{ number, number }The x and y of the property
Example
lua