# SFurniture

**Membres** 6

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

## Fonctions

### StoreCustomData

void StoreCustomData(string key, string value)

Paramètres

| Nom   | Type   | Valeur par défaut |
| ----- | ------ | ----------------- |
| key   | string | –                 |
| value | string | –                 |

Valeurs de retour

`void`

Exemple

**Lua**

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

```

### GetCustomData

string GetCustomData(string key)

Paramètres

| Nom | Type   | Valeur par défaut |
| --- | ------ | ----------------- |
| key | string | –                 |

Valeurs de retour

`string`

Exemple

**Lua**

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

```

## Propriétés

### InventoryItemID

int InventoryItemID {get; }

Return the inventory ID of furniture.

Exemple

**Lua**

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

```

### Floor

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

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

Exemple

**Lua**

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

```

### MainCollider

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

Exemple

**Lua**

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

```

### GameObject

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

Exemple

**Lua**

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

```
