This article's documentation is for anything that uses the Source engine. Click here for more information.

Give: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(not sure about this tip)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{stub}}
{{This is a|console command|name=give}}
{{wrongtitle|title=give}}
'''<code>give</code>''' is a console command that gives the player (or, rather, spawns beneath their feet) any specified entity.


To use the "Give" command, you must have sv_cheats set to 1.<br>
This command requires <code>[[sv_cheats]] 1</code> in multiplayer games like [[Team Fortress 2]], but not singleplayer games. Valve did not mark this as a cheat in Portal 2, and it allows for some very clever uses in challenge mode.
"Give" gives you an entity (or, rather, spawns that entity beneath your feet.)<br>
Give commands can be used like this: give [weapon name here.]<br><br>
The Weapon names for Counter-Strike Source are:<br>
'''Rifles'''


weapon_m4a1 (M4A1)<br>
{{note|Some entities will not work properly with this command because they need to be set up through Hammer.}}
weapon_p90 (P90 or C90(Thats copyright)<br>
weapon_ak47 (AK47 or Cv47)<br>
weapon_aug (Bullpip)<br>
weapon_g3sg1 (G3SG1)<br>
weapon_m249 (M249)<br>
weapon_m3 (M3 Shotgun)<br>
weapon_mac10 (Mac10)<br>
weapon_mp5navy (MP5)<br>
weapon_sg552 (SG552)<br>
weapon_scout (Scout Sniper)<br>
weapon_sg550 (SG550)<br>
weapon_ump45 (UMP)<br>
weapon_tmp (TMP)<br>
weapon_xm1014 (Auto Shotgun)<br>
weapon_awp (Heavy Snipe)<br>
weapon_galil (IDF Defender)<br>
weapon_famas (Famas)<br>
<br>'''Pistols'''<br>


weapon_deagle (Desert Eagle)<br>
==Syntax==
weapon_usp (USP)<br>
<pre>give ENTITY</pre>
weapon_glock (Glock)<br>
weapon_p228 (P228)<br>
weapon_elite (Dual Elites)<br>
weapon_fiveseven (FiveSeven)<br><br>


{{ccexample|In Counter-Strike Source, this equips you with a shotgun: |give [[weapon_m3]]}}
In Half-Life 2, <code>give [[weapon_rpg]]</code> will spawn a rocket launcher under the player (which they will usually immediately pick up).


{{ccexample|In Half-Life 2, this equips you with a shotgun: |give [[weapon_shotgun]]}}
==See also==
 
*{{ent|ent_create}}, a command like <code>give</code>, but things spawn where the player is looking.
[[Category:Console Commands]]
*[[:Category:Weapons]] - A list of [[Half-Life 2]] weapons.
*[[:Category:Items]] - A list of [[Half-Life 2]] items and ammo.
*[[:Category:Counter-Strike:_Source_Entities]] - A list of mostly [[Counter-Strike: Source]] weapons and ammo.

Latest revision as of 04:05, 5 April 2025

give is a console command available in all Source Source games. give is a console command that gives the player (or, rather, spawns beneath their feet) any specified entity.

This command requires sv_cheats 1 in multiplayer games like Team Fortress 2, but not singleplayer games. Valve did not mark this as a cheat in Portal 2, and it allows for some very clever uses in challenge mode.

Note.pngNote:Some entities will not work properly with this command because they need to be set up through Hammer.

Syntax

give ENTITY

In Half-Life 2, give weapon_rpg will spawn a rocket launcher under the player (which they will usually immediately pick up).

See also