Player:cancelUse
:::note Should be used when the client closes the menu, on the server this is done automatically :::
boolean Player:cancelUse(entity)
Returns true if successful
Parameters
| Type | Name | Description | Optional |
|---|---|---|---|
| Entity | entity | The menu to close, empty will cancel all | ✔ |
Returns
| Type | Description |
|---|---|
| boolean | No description |