# sm.item.getMaterialId

Returns the material id of a shape uuid.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.item.getMaterialId( uuid )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.item.md#getmaterialid)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `uuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the shape. |

**Returns:**

| Type | Description |
| --- | --- |
| integer | The shape's material id. |
