# Harvestable.setClientPublicData

Sets client public data on a harvestable.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
harvestable:setClientPublicData( data )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `harvestable` | [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) | The harvestable. |
| `data` | table | The client public data. |
