SetInteriorFurnitureEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Small edits)
No edit summary
Line 21: Line 21:
===Returns===
===Returns===
Returns ''true'' if successful, ''false'' otherwise.
Returns ''true'' if successful, ''false'' otherwise.
==Example==
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
-- Disable furnishing for all rooms
for i = 0, 4 do
    setInteriorFurnitureEnabled(i, false)
end
</syntaxhighlight>
</section>


==See Also==
==See Also==
{{World functions}}
{{World functions}}

Revision as of 21:24, 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.

Example

Click to collapse [-]
Client
-- Disable furnishing for all rooms
for i = 0, 4 do
    setInteriorFurnitureEnabled(i, false)
end

See Also