Garry's Mod - console commands to set entity keyvalues aren't working

Garry's Mod - console commands to set entity keyvalues aren't working - From above of unrecognizable male disk jockey standing near DJ jog wheels near laptop while playing music in modern nightclub

In Half-Life 2, there is a gun for the Airboat. I wanted to play with this in Garry's Mod, so I tried enabling the gun through keyvalues, like you would in Hammer Editor. There is an EnableGun boolean keyvalue, so I tried using console commands to enable the gun. I spawned an Airboat through the spawnmenu (under vehicles), pointed my crosshair at it, and typed:

ent_setname "airboatandgun"
ent_keyvalue "airboatandgun" "EnableGun" "1"

This did not enable the gun. I thought maybe you couldn't access the gun like you could in HL2, so I tried this:

ent_keyvalue "model" "models/balloons/balloon_star.mdl"

This did not set the model. I tried enabling cheats, duplicating the entity, and reloading (although this removed all the entities.) Neither the airboat gun nor the new model appeared.

Am I doing something wrong? HL2 is properly mounted to Garry's Mod. Is the Airboat in Garry's Mod different than the one in Half-Life 2, or does the command not work at all?



Best Answer

I believe you download that from the steam workshop it is HL2 Vehicles with guns P.S the mounted gun is just for decoration unless you get the workshop item




Pictures about "Garry's Mod - console commands to set entity keyvalues aren't working"

Garry's Mod - console commands to set entity keyvalues aren't working - Men and Woman Working
Garry's Mod - console commands to set entity keyvalues aren't working - Crop unrecognizable female on modern monitor with video game on screen near ethnic partner
Garry's Mod - console commands to set entity keyvalues aren't working - Man Beside Car



How do I enable commands in GMOD?

How to Open the Console
  • Launch Gmod on your PC.
  • Go to the game's main menu.
  • Click on \u201cOptions\u201d from the main menu.
  • Select the \u201cKeyboard\u201d tab.
  • From this menu, find the \u201cAdvanced\u201d tab.
  • Click to check the \u201cEnable Developer Console (~)\u201d option.
  • Confirm your choice.
  • End the process by clicking on the second \u201cOk\u201d button.


  • How do I use developer console in GMOD?

    #1
  • Press ~ on your keyboard.
  • Type bind <any key listed below. - Example: bind KP_INS "say Reeeeeeeeeeeeeeeeeeee"
  • Press enter[/list]


  • How do you bind a numpad key in GMOD?

    To use the console commands press the ~ on your key board and a console screen should pop up and then type the code in the type section. -note: this can only be used in single player mode. Plus you need to type sv_cheats 1 to make this work.



    Garry - Flam Se Ta Da [Video Oficial] Álbum “Novo Ciclo“ 2022




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Daniel Eliashevsky, Kyle Loftus, cottonbro, Kyle Loftus