# CharacterClass.client_onInteract

Called when a [Player](../Game-Script-Environment/Userdata/Player.md) is interacting with the [Character](../Game-Script-Environment/Userdata/Character.md) by pressing the 'Use' key (default 'E').

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Client

``` { .lua .api-signature }
CharacterClass:client_onInteract( character, state )
```

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

**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 interacting with this [Character](../Game-Script-Environment/Userdata/Character.md). |
| `state` | boolean | The interaction state. Always true. The [CharacterClass](../Game-Script-Environment/Classes/CharacterClass.md) only receives the key down event. |
