SetInteriorFurnitureEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(changed version)
m (Small edits)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{New feature/item|3.0140|1.3.5|6100|
{{New feature/item|9.06101|1.3.5|6101|
This function can disable or enable generating furniture in some interiors.
This function toggles furniture generation in interiors with the specified room ID.
}}
}}


Line 11: Line 11:


===Required Arguments===  
===Required Arguments===  
*'''roomID:''' The room type which you want disable or enable furniture
*'''roomID:''' The room type which you want disable or enable the furniture in:
** '''0''': shop
** '''0''': shop
** '''1''': office
** '''1''': office
Line 17: Line 17:
** '''3''': bedroom
** '''3''': bedroom
** '''4''': kitchen
** '''4''': kitchen
*'''enabled''': enable or not
*'''enabled''': A bool representing whether the interior furniture is enabled or disabled.


===Returns===
===Returns===

Revision as of 19:03, 30 January 2014

ADDED/UPDATED IN VERSION 1.3.5 r6101:

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.

See Also