Garry's Mod

Console commands

Submitted by Glebasik, , Thread ID: 231784

Thread Closed
20-01-2022, 06:06 PM
#1
This guide will help you learn some console commands.
General
sbox_noclip 1 // Enable flight mode 0-Off 1-On
sbox_weapons 1 // Give the weapon at a revival 0-Off 1-On
sbox_godmode 1 // Godmode 0-Off 1-On
sbox_playershurtplayers 1 // Allow killing players 0-Off 1-On
sbox_bonemanip_npc 1 // Enable change of bone NPC 0-Off 1-On
sbox_bonemanip_player 1 // Enable change of bone players 0-Off 1-On
sbox_bonemanip_misc 1 // Allow other bone changes 0-Off 1-On
sbox_admin_nolimits 1 // Remove the limit for admins 0-Off. 1-On.
physgun_limited 1 // Limit the Gravity Gun 0-Off 1-On
sv_gravity 600 // Sets the gravity (Standard 600)
sk_plr_dmg_357 # // Change the damage "Magnum" (instead of # substitute their number). This code applies to the rest of the weapons, but instead of "357"
sk_max_357 # - Set the maximum number of bullets in the clip for "Magnum". By analogy with the previous code - acts on the rest of the weapons (just substitute instead of "357" name of the desired trunk).
The weapon's name:
crossbow (crossbow), grenade (grenades), pistol (pistol), ar2 (Pulse Rifle), rpg_round (rocket launcher), buckshot (shotgun), smg1_grenade (SMG-grenade), smg1 (SMG)

Limits
sbox_maxprops 200 // Limit for props
sbox_maxnpcs 200 // Limit for NPC
sbox_maxragdolls 200 // Limit on ragdoly
sbox_maxthrusters 200 // Limit on thrusters (accelerators)
sbox_maxbuttons 200 // Limit the buttons
sbox_maxdynamite 200 // Limit on dynamites
sbox_maxeffects 200 // The limit on the effects of
sbox_maxemitters 200 // Limit on emitters
sbox_maxhoverballs 200 // Limit on hoverboly
sbox_maxballoons 200 // Limit on balls
sbox_maxlamps 200 // Limit on lamps
sbox_maxlights 200 // Limit the light
sbox_maxvehicles 200 // Limit for machine/chairs
sbox_maxwheels 200 // Limit on wheels
Lf you downloaded the tool Turrent
sbox_maxturrets 200 // Limit on Turrent
Lf you downloaded the tool KeyPad
sbox_maxkeypads 200 // Limit on Keypad
Lf you downloaded the tool Door
sbox_maxdoors 200 // Limit on the door

From cheats
Write sv_cheats 1 in the console
viewmodel_fov 30 // Set the size of the current weapons (Standard 54)
thirdperson // From 3 persons
firstperson // From 1 person
god // Mode of immortality (for off. Again write god)
notarget // Stealth mode (for off. Again write god)
cl_drawhud 0 // interface 0-Off 1-On
hurtme 10 // Takes away a certain number of lives (10=100-10=90hp)
impulse 82 // Appears buggy (Jeep)
impulse 83 // Appears catamaran (Marine Air)
impulse 203 // Remove the object on which the camera direction
impulse 101 // Gives all weapons HL2 and a lot of bullets to them
mat_depthbias_normal 1 // Mode vision through walls
bind i "toggle mat_depthbias_normal 0 1" // To quickly switch
vcollide_wireframe 1 // Shows model physical collisions in a blue structure during start-up 0-Off 1-On
bind k "toggle vcollide_wireframe 0 1" // To quickly switch
host_timescale 0.1 // Slowing down time (Standard 1.0)
bind o "toggle host_timescale 0.1 1" // To quickly switch

Cheats for charges:
give item_box_mrounds
box_buckshot (ammo for the shotgun), box_mrounds (on the automatic machine), box_sniper_rounds (on the sniper rifle), box_srounds (on pistol), healthkit (big kit), healthvial (small kit), battery (battery for a suit), suit (suit), ml_grenade (charges on a rocket launcher), ar2_grenade (limon for pulse machine)
bind u "give item_box_mrounds"

Command to create NPC
Write sv_cheats 1 in the console
npc_create npc_Name // Instead of 'Name' to write this:
The rebels
alyx, barney, eli, mossman, dog, gman, citizen, kleiner, vortigaunt
Combine
metropolice, combine_s, breen, stalker, combinedropship, combinegunship, helicopter, manhack
Monster
zombie, zombie_torso, fastzombie, poisonzombie, zombine (EP1), antlion, antlionguard, ministrider (EP1), headcrab, headcrab_fast, headcrab_poison, barnacle
Neutrals
monk, pigeon, seagull, crow

Cheats with gravity gun
Write sv_cheats 1 in the console
physcannon_maxforce # - change the force with which gravity gun pushes objects.
physcannon_maxmass # - change the maximum size of objects that can attract gravity gun.
physcannon_pullforce # - change the speed at which gravity gun attracts objects.
physcannon_tracelength # - change the maximum distance at which objects can attract gravipushka.
physcannon_cone # - change the distance from which gravity gun can lift objects into the air.

You can create command command alias, but the team will be composed of other teams. This can be in contrast to the Binda can use to create +commands, that is, when you press the button - do one action when release - other
Alias +command "action when you click"
Alias -command "action when the release button"

Alias +megaphyscannon "physcannon_maxmass 700; physcannon_maxforce 9000"
Alias -megaphyscannon "physcannon_maxmass 250; physcannon_maxforce 1500" // Returns the standard
Bind alt "+ megaphyscannon"

For the server
kick SundeX // kick players
banid <minute> <Steam ID or serial number> // Bans Player
Permanent ban - digit 0 (all banks)
How do I know SteamID or copy a custom nickname?
status // Gives a console table with the nickname and ID Steam
How to change the map on the server?
map gm_flatgrass // Kick all the people on the server except for you and change the map
changelevel gm_flatgrass // Changes the map
How to put a password on the server?
sv_password 123
My friend kicked from server error "Too Many Lua Errors" what to do?
sv_kickerrornum 0
How do I quickly restart the server?
restart
It may be useful to remove players from too high and low ping
sv_minrate 1 // Min. Ping
sv_maxrate 130 // Max. Ping
Other commands to the server
mp_flashlight 0 // Possibilities of using a flashlight 0-Off 1-On
sv_noclipspeed 50 // Changes the speed Noclip (Standard 5)
ai_disabled 1 // Disable NPC 0-Off 1-On
ai_ignoreplayers 1 // NPC players ignore the 0-Off 1-On

You can also download the necessary addons for the server

//Addons to server
: MaximBit
//Addons to server

My subscriptions

? //My subscriptions
: MaximBit
? //My subscriptions


Other
kill // Kills your character
disconnect // Exit the server
quit // Exit Game
killserver // When you host, entering the command, you can quickly get to the main menu
retry // Reconnect to the current server
hud_deathnotice_time 0 // Time appearance of icons kills in seconds (Standard 6 - 6 seconds)
unbind button // Otbindivaet button

13 teams for non-standard character animation
act cheer
act laugh
act muscle
act zombie
act robot
act dance
act agree
act becon
act disagree
act salute
act wave
act forward
act halt
act pers
So that every time a team can not write zabindit on unnecessary keys/numbers.
example:
bind o "act salute"

Commands
+forward // Move forward
+back // Move back
+moveleft // Strafe left
+moveright // Strafe right
+left // Turn left
+right // Turn right
+jump // To jump
+duck // Crouch
+use // Use
+attack // Shoot
+attack2 // Alternative shooting / optional feature weapons
+reload // Reload
slot1 // First slot
slot2 // Second slot
slot3 // Third slot
slot4 // Fourth slot
slot5 // Fifth slot
slot6 // Sixth slot
slot7 // Seventh slot
slot8 // Eighth slot
slot9 // Ninth slot
slot10 // Null slot
impulse 201 // Draw logo
impulse 100 // Turn on / off lights

Who knows yet what a team write in comments, then add them to the guide.

If you liked my guide you will appreciate it =)

Users browsing this thread: 1 Guest(s)