# SFurniture

**الأعضاء** 6

|       |                                     |                                                                          |
| ----- | ----------------------------------- | ------------------------------------------------------------------------ |
| دالة  | [StoreCustomData](#storecustomdata) | –                                                                        |
| دالة  | [GetCustomData](#getcustomdata)     | –                                                                        |
| خاصية | [InventoryItemID](#inventoryitemid) | Return the inventory ID of furniture.                                    |
| خاصية | [Floor](#floor)                     | Return an SRoomFloor component of the floor this furniture is placed on. |
| خاصية | [MainCollider](#maincollider)       | –                                                                        |
| خاصية | [GameObject](#gameobject)           | –                                                                        |

## الدوال

### StoreCustomData

void StoreCustomData(string key, string value)

المعاملات

| الاسم | النوع  | القيمة الافتراضية |
| ----- | ------ | ----------------- |
| key   | string | –                 |
| value | string | –                 |

القيم المرجعة

`void`

مثال

**Lua**

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

```

### GetCustomData

string GetCustomData(string key)

المعاملات

| الاسم | النوع  | القيمة الافتراضية |
| ----- | ------ | ----------------- |
| key   | string | –                 |

القيم المرجعة

`string`

مثال

**Lua**

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

```

## الخصائص

### InventoryItemID

int InventoryItemID {get; }

Return the inventory ID of furniture.

مثال

**Lua**

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

```

### Floor

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

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

مثال

**Lua**

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

```

### MainCollider

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

مثال

**Lua**

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

```

### GameObject

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

مثال

**Lua**

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

```
