GetAllProperties
lua
Parameters
- owner:
stringThe identifier of the owner (citizenid, or the job name for a society) - ownerType:
'user' | 'society'The type of the owner - includeRented?:
booleanAlso include the properties this owner rents. Defaults tofalse.
Return Value
An array of tables, or an empty table if nothing matches:
- id:
number - label:
string - address:
string - price:
number - rentPrice:
number - type:
'shell' | 'ipl' | 'mlo' - doorLocked:
boolean - forSale:
boolean - forRent:
boolean - coords:
vector3 | vector4 | nilThe entrance (the building entrance for a property inside a building)
Example
lua