GetAllProperties
lua
Rented properties are not included. The export may wait for the server to send missing key holder data, so call it from a thread.
Parameters
- ownerType:
'user' | 'society' | 'both''user'Properties owned by the player'society'Properties owned by the player's job'both'Both of the above
Return Value
An array of tables, or an empty table if nothing is owned:
- id:
number - label:
string - price:
number - type:
'shell' | 'ipl' | 'mlo' - doorLocked:
boolean - keyHolders:
table<string, table<string, boolean>>The key holders, by identifier. Each one maps lock IDs to access.
Example
lua