← All built-ins / ui_menu_check()
ui_menu_check()
ui_menu_check(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | menu item handle |
| $checked | bool | checkmark state |
Return value
Sets the checkmark of a menu item.
Example
echo "ui_menu_check($item, true);";
ui_menu_check($item, true);
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.