# JsonGui.clearOnCloseCallback

Clears the close callback so it will not be called when the gui is closed

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
jsonGui:clearOnCloseCallback(  )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [JsonGui](../Game-Script-Environment/Userdata/JsonGui.md) | The gui. |
