ui.set_visible
Sets the visibility of the menu item
ui.set_visible(item: number, visible: boolean)
Arguments
Name | Description | Type |
---|---|---|
item | A menu item reference. | number |
visible | Boolean. Pass false to hide the control from the menu, or nil to return the previous visibility state. | boolean |