A shared menu API for CounterStrikeSharp plugins. It supports button, center, chat, console, and optional Metamod menus.
Requires CounterStrikeSharp 1.0.371 or newer and PlayerSettingsCS2 0.9.4 or newer.
- Download
MenuManager.zipfrom the latest release. - Extract it into the CS2 server root.
- Restart the server.
Players can use !menus to choose their menu type.
The button images are already available in the MenuManager Workshop addon.
Install MultiAddonManager, then add the Workshop ID to game/csgo/cfg/multiaddonmanager/multiaddonmanager.cfg:
mm_extra_addons "3763619947"If the list already contains other addons, append the ID with a comma. Set UseWorkshopButtonImages to true in the MenuManager config.
Reference MenuManagerApi.dll, request the menu:nfcore capability after all plugins load, then create a menu:
var menus = new PluginCapability<IMenuApi?>("menu:nfcore").Get();
var menu = menus!.GetMenu("Choose an option");
menu.AddMenuOption("First option", (player, option) => player.PrintToChat(option.Text));
menu.Open(player);See MenuManagerTest for a complete example.
Originally created by Nick Fox. Maintained and extended by karola3vax with passion.
Licensed under the MIT License.
