getInteriorFurnitureEnabled | Multi Theft Auto: Wiki Skip to content

getInteriorFurnitureEnabled

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 will tell you if interior furniture are enabled or disabled in a specified room ID.

Syntax

bool getInteriorFurnitureEnabled ( int roomID )
Required Arguments
  • roomID: MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if interior furniture is enabled or false if interior furniture is disabled.

Code Examples

shared
function checkIntFurniture( cmd, roomID )
local roomID = tonumber( roomID )
if not roomID or roomID < 0 or roomID > 4 then
outputChatBox( "Syntax: /" .. cmd .. " [room id: 0-4]", 220, 175, 20, false )
else
if getInteriorFurnitureEnabled( roomID ) then
outputChatBox("Interior furniture is enabled.", 20, 220, 20, false )
else
outputChatBox("Interior furniture is disabled.", 220, 20, 20, false )
end
end
end
addCommandHandler( "furniture", checkIntFurniture )

See Also

World Functions