menu

Methods

player_root

Returns a reference to the player submenu that the script owns

function menu.player_root(): submenu
-- example usage
local sub = menu.player_root()

script_root

Returns a reference to the script submenu that the script owns

function menu.script_root(): submenu
-- example usage
local sub = menu.script_root()

get_internal_option

Returns a reference to the internal option located at the provided path

function menu.get_internal_option(path: string): option
-- example usage
local opt = menu.get_internal_option("Main/Player/Invisibility")