Skip to content

setInteriorFurnitureEnabled

Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function toggles furniture generation in interiors with the specified room ID.

Syntax

bool setInteriorFurnitureEnabled ( ​int roomID, ​bool enabled )
Required arguments
  • roomID: The room type which you want disable or enable the furniture in: 0 : shop 1 : office 2 : lounge 3 : bedroom 4 : kitchen
  • enabled: A bool representing whether the interior furniture is enabled or disabled.

Returns

Returns true if successful, false otherwise.

  • bool: value

Code Examples

shared
-- Disable furnishing for all rooms
for i = 0, 4 do
setInteriorFurnitureEnabled(i, false)
end

See Also

World Functions