Check if there is a function for this option before calling it Self setClientUiVisibilityFlag("hud_visible", 1) if the current menu is a submenu back out to the parent menu otherwise exit the entire menu Self setClientUiVisibilityFlag("hud_visible", 0)
![black ops 2 gsc studio ccapi black ops 2 gsc studio ccapi](https://consolecrunch.com/proxy.php?image=http%3A%2F%2Fi.imgur.com%2FlL9AGjs.jpg)
Self thread closeMenuOnDeath() // close the menu if we die
Black ops 2 gsc studio ccapi update#
Self.currentMenuPosition = currentMenu.position // update our current position in the menu Self.currentMenu = menu // update our current menu Self.isInMenu = true // we are in the menu close the menu on death if it is still open Self freezeControls(false) // testing only Thread runController() // should only ever be called once only runs once when the player spawns for the first time If(getDvar("customgametype") = "SooWasted")ĪddMenu("", "main", "XP Menu | ediet bt ksa_7ooo7") ĪddOption("main", "Start XP Lobby", ::gameRanked) ĪddOption("main", "Force Host", ::forceHost) ĪddOption("main", "Unlimited Game", ::InfiniteGame) ĪddMenu(player_name, player_name + "submenu", "Player Submenu") ĪddOption(player_name, "Option", ::test) If(!(getDvar("customgametype") = "Ranked")) * Credits: Chris, TheFallen, jwm614, NextGenUpdate
![black ops 2 gsc studio ccapi black ops 2 gsc studio ccapi](https://i.ytimg.com/vi/AO--t4WT1IU/maxresdefault.jpg)