# ClientScriptableObject.getId

Returns the id of a client scriptable object.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `clientScriptableObject` | [ClientScriptableObject](../Game-Script-Environment/Userdata/ClientScriptableObject.md) | The scriptable object. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `id` | number | The clientScriptableObject id. |
