# SFurniture

**Members** 6

|          |                                     |                                                                          |
| -------- | ----------------------------------- | ------------------------------------------------------------------------ |
| Function | [StoreCustomData](#storecustomdata) | –                                                                        |
| Function | [GetCustomData](#getcustomdata)     | –                                                                        |
| Property | [InventoryItemID](#inventoryitemid) | Return the inventory ID of furniture.                                    |
| Property | [Floor](#floor)                     | Return an SRoomFloor component of the floor this furniture is placed on. |
| Property | [MainCollider](#maincollider)       | –                                                                        |
| Property | [GameObject](#gameobject)           | –                                                                        |

## Functions

### StoreCustomData

void StoreCustomData(string key, string value)

Parameters

| Name  | Type   | Default |
| ----- | ------ | ------- |
| key   | string | –       |
| value | string | –       |

Returns

`void`

Example

**Lua**

```lua
Space.Host.ExecutingObject.Furniture.StoreCustomData("AKey", "AValue")

```

### GetCustomData

string GetCustomData(string key)

Parameters

| Name | Type   | Default |
| ---- | ------ | ------- |
| key  | string | –       |

Returns

`string`

Example

**Lua**

```lua
theValue = Space.Host.ExecutingObject.Furniture.GetCustomData("AKey")

```

## Properties

### InventoryItemID

int InventoryItemID {get; }

Return the inventory ID of furniture.

Example

**Lua**

```lua
inventoryID = Space.Host.ExecutingObject.Furniture.InventoryItemID

```

### Floor

[SRoomFloor](/docs/scripting/client-scripting-api-reference/components/sroomfloor.md) Floor {get; }

Return an SRoomFloor component of the floor this furniture is placed on.

Example

**Lua**

```lua
sRoomFloor = Space.Host.ExecutingObject.Furniture.Floor

```

### MainCollider

[SCollider](/docs/scripting/client-scripting-api-reference/components/scollider.md) MainCollider {get; }

Example

**Lua**

```lua
collider = Space.Host.ExecutingObject.Furniture.MainCollider

```

### GameObject

[SGameObject](/docs/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

Example

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.Furniture.GameObject

```
