setInteriorFurnitureEnabled | Multi Theft Auto: Wiki Skip to content

setInteriorFurnitureEnabled

Client-side
Server-side
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

  • bool: value

Returns true if successful, false otherwise.

Code Examples

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

See Also

World Functions