# Interactable.getId

Returns the id of an interactable.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
interactable:getId(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Interactable.md#getid)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable. |

**Returns:**

| Type | Description |
| --- | --- |
| integer | The interactable's id. |
