Skip to main content

ui.set_visible

Sets the visibility of the menu item

ui.set_visible(item: number, visible: boolean)

Arguments

NameDescriptionType
itemA menu item reference.number
visibleBoolean. Pass false to hide the control from the menu, or nil to return the previous visibility state.boolean