Skip to content

Repository files navigation

MenuManagerCS2

A shared menu API for CounterStrikeSharp plugins. It supports button, center, chat, console, and optional Metamod menus.

MenuManager in Counter-Strike 2

Watch the in-game video

Installation

Requires CounterStrikeSharp 1.0.371 or newer and PlayerSettingsCS2 0.9.4 or newer.

  1. Download MenuManager.zip from the latest release.
  2. Extract it into the CS2 server root.
  3. Restart the server.

Players can use !menus to choose their menu type.

Workshop button images

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.

Plugin developers

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.

Credits

Originally created by Nick Fox. Maintained and extended by karola3vax with passion.

Licensed under the MIT License.

About

Shared menu API for CounterStrikeSharp plugins.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages