counterstrike-cn

Buy Menu

Full buy menu with weapon categories, pricing, and team filtering.

Buy Menu

The CS 1.6 buy menu — category sidebar on the left, items on the right, with proper pricing and team-based weapon availability. Includes all original weapon categories and default items.

Interactive Preview
Buy Menu$3,500
Select a category
Press [B] to open • Number keys to select

Usage

import { BuyMenu } from "@/components/ui/cscn/buy-menu";

<BuyMenu
  money={4750}
  team="ct"
  onBuy={(item) => console.log(`Bought ${item.name} for $${item.price}`)}
/>

With custom categories

import { BuyMenu, type BuyMenuCategory } from "@/components/ui/cscn/buy-menu";

const customCategories: BuyMenuCategory[] = [
  {
    key: "1",
    label: "Primary",
    items: [
      { key: "1", name: "AK-47", price: 2500, team: "both" },
      { key: "2", name: "M4A1", price: 3100, team: "both" },
    ],
  },
];

<BuyMenu categories={customCategories} money={16000} team="ct" />

Props

PropTypeDefaultDescription
categoriesBuyMenuCategory[]All CS 1.6 weaponsWeapon categories
moneynumber800Player's current money
team"ct" | "t""ct"Current team (filters weapons)
onBuy(item: BuyMenuItem) => voidCallback when item is purchased