buy is a console command available in the following Source games or engine branches:
Counter-Strike: Source and Counter-Strike: Global Offensive.
buy is a non-cheat command for players to purchase weapons and equipment with their funds while they are allowed to buy, i.e. if the mp_buytime hasn't expired yet and if they are inside a
Note:The command buy also exists in , and but simply opens the buy menu. For that purpose, and have the command buymenu instead.
Confirm: Does actually have a buymenu that will pop up, or is the command vestigial there?
buy <item alias>
If the command is invoked with invalid or no arguments, it prints a list of valid arguments.
There is the alternative syntax buy <?> <int>.
Todo: What is the first parameter for? Appears to work with any first non-empty parameter.
"buy awp" tries to buy an AWP.
Buy aliases in
|"buy 1 <int>"
||Item slot that is purchased from
||glock, hkp2000, usp_silencer
||Glock-18 / P2000 / USP-S
||tec9, fn57, fiveseven
||Tec-9 / CZ75-Auto / Five-SeveN
||Desert Eagle / R8 Revolver
||MAC-10 / MP9
||MP7 / MP5-SD
||Galil AR / FAMAS
||ak47, m4a1, m4a1_silencer
||AK-47 / M4A4 / M4A1-S
||SG-553 / AUG
||G3SG1 / Scar-20
||Sawed-Off / MAG-7
||Riot Shield (only in Hostage Rescue)
||High Explosive Grenade
||Kevlar + Helmet
||Defuse Kit / Rescue Kit
"buy awp" or
"buy 1 18" tries to buy an AWP.
Note:Everything has a string alias except for the Riot Shield. Use
"buy 1 25" to buy it via command.
buy heavyarmor anymore, independent of mp_weapons_allow_heavyassaultsuit,
even though heavyarmor is still listed when invoking buy with invalid or no arguments.
Related Console Commands and Variables
||Attempts to purchase items with the order listed in cl_autobuy. Buys at most one primary and at most one secondary.
||A space-delimited list of buy aliases (see above) in the order in which autobuy will attempt to purchase them. See |
||Attempts to repurchase items with the order listed in cl_rebuy. By default, this results in trying to buy the exact loadout that the executing player had when they had bought something for the last time.
||A space-delimited list of item categories in the order in which rebuy will attempt to repurchase them. Categories are: PrimaryWeapon, PrimaryAmmo, SecondaryWeapon, SecondaryAmmo, Defuser, Armor, HEGrenade, Flashbang, SmokeGrenade, NightVision ( Molotov, IncGrenade, Decoy, Taser). See |
|| 1.5 90
||The time in minutes / seconds from the start of the round that players are still allowed to buy.
||Determines which teams are allowed to buy anywhere in the map and not just in func_buyzones.
- 1: Both
- 2: Ts only
- 3: CTs only
- else: None
||Overrides which teams are allowed to buy at all. Changing this value takes effect in the next round.