# ShapeClass.server_onUnload

Called when the [Interactable](../Game-Script-Environment/Userdata/Interactable.md) is unloaded from the game because no [Player](../Game-Script-Environment/Userdata/Player.md)'s [Character](../Game-Script-Environment/Userdata/Character.md) is close enough to it. Also called when exiting the game.

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Server

``` { .lua .api-signature }
ShapeClass:server_onUnload(  )
```

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

> **Note:**
> The creation, consisting of one or more [bodies](../Game-Script-Environment/Userdata/Body.md), consisting of one or more [shapes](../Game-Script-Environment/Userdata/Shape.md) joined together with [joints](../Game-Script-Environment/Userdata/Joint.md) are always unloaded at the same time.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |
