Enter
Enters building based on given context.
Parameters
no-housing:furniture:ui
Toggles furniture editor if player has access in current house.
no-housing:housemanager:edit
Opens house editor for closest house.
GetPlayerHouses
Returns the list of houses the player has access to.
Parameters
Returns
houseList: {id: number; address: string; owned: boolean; realestate: Realestate}[]
GetPlayerHousesByUserId
Returns the list of houses the player has access to.
Parameters
Returns
houseList: {id: number; address: string; owned: boolean; realestate: Realestate}[]
GetAccesses
Returns the user ids of players who have access to the house.
Parameters
Returns
IsOwner
Returns whether the player owns the given house.
Parameters
Returns
IsOwnedByUserId
Returns whether the player owns the given house.
Parameters
Returns
HasAccess
Returns whether the player has access to the given house.
Parameters
Returns
HasAccessByUserId
Returns whether the player has access to the given house.
Parameters
Returns
GiveAccess
Gives the player access to the given house.
Parameters
Returns
result: {success: boolean, message: string}
GiveAccessByUserId
Gives the player access to the given house.
Parameters
Returns
result: {success: boolean, message: string}
RemoveAccess
Removes player access from given house.
Parameters
Returns
result: {success: boolean, message: string}
RemoveAccessByUserId
Removes player access from given house.
Parameters
Returns
result: {success: boolean, message: string}
ShareAccess
Shares access with given target if player has permission.
Parameters
Returns
result: {success: boolean, message: string}
ShareAccessByUserId
Shares access with given target if player has permission.
Parameters
Returns
result: {success: boolean, message: string}
RemoveAccesWithPermission
Removes given target's access if player has permission.
Parameters
Returns
result: {success: boolean, message: string}
ResetAccessesWithPermission
Resets house accesses if player has permission.
Parameters
Returns
result: {success: boolean, message: string}