GMOD Console Commands

A Tutorial for Garry's Mod

Attention Gamer! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Lukaswbrr points.
  • Post: Give Lukaswbrr your thoughts on this Tutorial.
  • Vote: Help Lukaswbrr win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

Alright, Let's get this tutorial started.

In GMOD, you can use Developer Console for execute Commands and have Fun too with sv_cheats 1.

So, here i'm going to show you some developer console Commands in GMOD

(And Some of them Need sv_cheats 1 for Work!)

  1. sv_cheats 1 - Enables cheats on the server.
  2. buddha -  Makes you survive if your health reaches on 1.
  3. noclip - Makes you fly around on the map. (Is the same effect If you press V [By Default] on sandbox.)
  4. thirdperson - Enables the Third Person camera. (It makes your camera on your back.)
  5. firstperson - Enables the First Person camera. (It resets the camera to normal if you use thirdperson.)

Well, That was SOME commands that can have in Source Engine games.

Now, Time to show some POSSIBLE entities on Gmod.

  1. ent_create weapon_alyxgun - Creates a Alyx's Gun on the map.
  2. ent_create weapon_357 - Creates a 357 weapon on the map.
  3. ent_create weapon_stunstick - Creates a Stun Stick weapon on the map.
  4. ent_create weapon_crowbar - Creates a Crowbar weapon on the map.
  5. ent_create weapon_physcannon - Creates a Gravity Gun on the map.
  6. ent_create weapon_crossbow - Creates a Crossbow on the map.
  7. ent_create weapon_bugbait - Creates a Bug Bait on the map.
  8. ent_create weapon_smg1 - Creates a SMG on the map.
  9. ent_create weapon_striderbuster - Creates a Strider Buster on the map. (BUT i think it need Half-Life: Episode Two to work.)
  10. ent_create weapon_shotgun - Creates a Shotgun on the map.
  11. ent_create weapon_rpg - Creates a RPG on the map.
  12. ent_create weapon_pistol - Creates a Pistol on the map.
  13. ent_create weapon_frag - Creates a Grenade on the map.
  14. ent_create weapon_ar2 - Creates a AR2 on the map.
  15. ent_create weapon_annabelle - Creates a Annabelle on the map.

Now, Some GMOD Commands.

  1. sv_kickerrornum 0 - Disables kicking for lua errors.
  2. sv_unlag 0 - Disables lag compesation.
  3. sv_password - Sets the password of the server.
  4. npc_create <NPCclassname> - Create the NPC matching <classname> at the point you're looking at, if it can fit in the space. (For example: npc_create npc_combine_s)

Now, point_viewcontrol.

point_viewcontrol?, Lemme Explain.

point_viewcontrol is a point entity available in all Source games. It is a camera entity that controls the player's view. While it's active, the player will see out of the camera.

In code it is represented by class CTriggerCamera, defined in triggers.cpp.

 Bug:

This class appears to have some problems. Please see its discussion page for notes.

For Example:

  1. ent_create point_viewcontrol fov 80 target path01 wait 10 moveto path02 speed 10 targetname testingviewcontrol01 - Creates a point_viewcontrol.
  2. ent_fire testingviewcontrol01 Enable - Enables the point_viewcontrol.

BUT WAIT!!

You need to create path_track for make the Command work!

path_track?, Lemme Explain.

path_track is a point entity available in all Source games. It is used to build paths for other entities to follow. Each path_track is a node on the path, each holding the name of the next path_track in the path.

For Example:

  1. ent_create path_track targetname path01 - Creates a path_track with targetname path01.

Then look somewhere then do:

  1. ent_create path_track targetname path02 - Creates a path_track with targetname path02.

Then Done!


Now, lua_run.

lua_run?, Lemme Explain.

A console command that allows you to run lua code on the server.

Examples:


lua_run Entity(1):SetHealth(300)
 Set's the first player's health to 300.


lua_run zombie = ents.Create("npc_zombie") zombie:Spawn()
Creates a zombie and spawns it (at the origin by default).

lua_run zombie:Ignite()
Sets our previously spawned zombie on fire.

BUT WAIT..

There's lua_run_cl too!

lua_run_cl?, Lemme Explain.

A console command that allows you to run lua code on the client.


For Example:

lua_run_cl print(LocalPlayer():GetPos(),LocalPlayer():EyeAngles())
Prints your world position and eye angles.


Alright, that was not all GMOD Developer console commands..
Maybe later i add more on the tutorial..

But Don't Worry..

I will find Even more GMOD Console commands for the Tutorial.

That's it for now, Bye!

------------------------------------------------------------------------------------------------

Version 2.5 (Minor Update)

  1. -Added lua_run explanation.
  2. -Added lua_run_cl explanation.


Version 2 (Just Getting Started Update)

  • -Added point_viewcontrol explanation.
  • -Added path_track explanation.
  • -Added more ent_create commands.

Todos

Gmod_ entities explanations..

Posts

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Creators
Lukaswbrr
Creator of this tutorial.
Special Thanks
Valve Developer Community
For list of Entities and Commands.

Submitter

Lukaswbrr avatar
Lukaswbrr Offline
Member Joined 2y
222 points Ranked 16812th

Lukaswbrr
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

Stats

Posts
2
Views
1,492
Date Added
5mo
Date Modified
9d

Scores

  • Not yet rated
Sign up to access this!

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

More from Submitter

bcp.crwdcntrl.net tracking pixel