# HarvestableClass.client_canInteract

Called to check whether the [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) can be interacted with at this moment.

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Client

``` { .lua .api-signature }
HarvestableClass:client_canInteract( character )
```

[Open the full Game reference](../Game-Script-Environment/Classes/HarvestableClass.md#client_caninteract)

> **Note:**
> This callback is also responsible for updating interaction text shown to the player using [sm.gui.setInteractionText](../Game-Script-Environment/Static-Functions/sm.gui.md#setinteractiontext).

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The [Character](../Game-Script-Environment/Userdata/Character.md) of the [Player](../Game-Script-Environment/Userdata/Player.md) that is looking at the [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md). |

**Returns:**

| Type | Description |
| --- | --- |
| boolean | A boolean indicating whether the harvestable can be interacted with or not. (Defaults to true if [client_onInteract](../Game-Script-Environment/Classes/HarvestableClass.md#client_oninteract) is implemented, otherwise false) |
