Garry's Mod

Garry's Mod

39 ratings
Overhauled Radial Menu Advanced & Basic guide
By Pinhead Larry
An unofficial guide on how to work the more advanced aspects of the Uke's radial menu.
   
Award
Favorite
Favorited
Unfavorite
Using the menu
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=265292490&searchtext=radial
When you initially subscribe the this addon, you will probably notice literally nothing, unless you read the description. The description infroms the user that the way to use this addon is to bind a key to "+gb-radial".

  1. Open the console
  2. Type "Bind <key> +gb-radial" without the quataion "" marks.
    E.g: bind t +gb-radial

After you do this pressing the key will bring up this menu:

At first you are greeted by a list of options, mostly tools you probably have never even heard of. The method i used was to delete everything and start from scratch. Because this is a highly customizable addon, i suggest you do the same so you get practice creating functions.

As it says in the bottom right corner of the screen, click right mouse to open the options menu; you will see this:

to delete these you need to click on the options and press delete, self explanatory.

Now that the menu is blank, to add a new function go to the category that says "Add Shortcut" and press function search.

Weapons
I suggest adding a physgun shortcut for easy practice, which can be done by searching phys and it should come up:

This addon is very smart, so it will automatically give you the weapon name as the shortcut title, but it can be changed if you really want it to.

Click add and it will be on the menu.

This works the same for any weapon; a weapon shortcut will switch to the weapon as well as give it to you if you do not already have it.

If you cannot find the weapon on function search for any reason, you can add it manually by going to the weapon on the spawn menu and right-clicking and selecting Copy to Clipboard. Once in the menu type wep then paste; E.g: "wep weapon_357" , then name it what you want.

Tools
Tools are similar to weapons, search in the function search for a tool such as remover and press add, it also auto-detects the tool's name. I will do the remover as an example:

Commands
All of these are commands, so this could be more of considered as an "other" category, although there are definitely the most possibilities here.

A simple command is kill, this kills the player.

A more advanced and useful, but still simple command is "cl_showfps" this shows your current frames per second and the current map. This command is incremental, meaning different numbers have different effects. 1=on 0=off.

Of course, you could set a shortcut for on and another for off, but that seems pointless because why not make it a toggle?

The way to do this is to NOT use the function search, but instead to type:
"incrementvar cl_showfps 0 1 1"
into the Cmd box and name it "FPS" or something.

I wont go too far into it in this guide, but for any command that is only on or off, this works to toggle. "incrementvar <command> 0 1 1" Some examples of commands that work are: sbox_weapons sbox_godmode sbox_noclip sbox_playershurtplayers, sv_cheats, which enable spawning with hl2 weapons, noclipping, invincibility, PvP damage, and cheats.

I also suggest turning on colors to easily tell what items are without even reading. To do this, click the box at the right of the shortcut and you can change the color, you of course will need to check "Use custom color" to enable this.

Presets
Presets are the final category of this guide, but will be covered in their own section, but as a start I will save the current setup as a preset by going to the presets tab, naming, and pressing save.
Presets and Sub-menus.
You if you already have a menu, you probably can think of lots of things to add, but there is only so much space. Presets are a great solution to this.

Lets say you want to have a tool menu and a weapons menu, but already have a menu cluttered with both:

The best way to split a menu is to first save this as a preset which will be one of the categories "weapons" and then immediately save it as the other set "tools" without changing anything:

After this load the tools preset by left-clicking on it from this tab, then delete all the weapons and then save over it, then vice versa and you will have a preset called tools with the tools and a preset called weapons with the weapons (or whichever categories you chose)

To save over an already existing preset, instead of typing out the name manually, you can RIGHT-click on it, then press save, it says this below in the menu, but this is very convenient and I never noticed it until writing this guide and once again, it is VERY convenient.

PRESETS DO NOT AUTOSAVE! so every time you make any adjustment you want to keep, go to the presets tab, right-click on the preset, and press and confirm save. but also BE CAREFUL NOT TO SAVE OVER THE WRONG PRESET!

Now that you have two presets, you can switch between them in the presets tab, which is fine if they are for different game-modes, but otherwise is very inconvenient.

Luckily, this addon lets you set presets on menu shortcuts.

From this point, you will be making many more presets, so making a blank template preset is highly suggested (delete everything and save it as blank)

The most efficient way to change between presets is to make a "hub" preset. To do this you will simply need to add one button for each sub-menu. Go to the function search and type the name of your preset (still using the tools and weapons examples) "tools" and it will come up in green saying load_preset tools, do this for all of your sub-menus, then save as a new preset called hub.

If you want to make the hub always be the first to load when you being up the menu, go to all the sub-menus and at the bottom it should say "Execute this command if you close the menu:", set this to "load_preset hub" so it loads the hub. AND ALWAYS remember to go to the presets tab and override the preset you are editing.

I also suggest putting in a back button in your sub-menus just in case you accidentally click the wrong category, and don't want to reset the whole menu. (I put all my back buttons and the top and in orange so they stick out) Remember to hold shift to snap rotation to the degrees of the current number of items. snap° = (360/n)

This does work with sub-sub-menus and so on into sub-ception, but i suggest removing automatically loading the hub for the deep menus because it can be hard to navigate back to them.

One last major tutorial I will do is how to make confirmation menus (ones that ask yes or no)

As an example, cleaning up the whole map works great.

gmod_admin_cleanup is the command to reset the whole map and delete all player-spawned props, but this could be very bad if you didn't mean to click on it. The best solution is a confirmation menu that asks yes or no. So instead of making a shortcut called clean that executes gmod_admin_cleanup, make a shortcut called clean that loads a preset called "cleansure" (or something along those lines). To do this also suggest making a "suretemplate".

Either way, to do this you will need to have a blank menu and make one option called Yes and one called No. I put yes in green and no in red.

Yes will execute the desired command, in this case gmod_admin_cleanup

No will return the the previous menu, in this case "load_preset hub"
But we also want Yes to return so Yes's command will be "gmod_admin_cleanup;load_preset hub"

I also suggest setting yes on the opposite side of clean, to decrease the chance of accidentally pressing yes. E.g: If clean is on top, put No on top and Yes on bottom.
Useful Commands and Ideas
Drag to repeat is very useful for undo

Ammo ("gm_spawnsent <ammotype>") [refer to below]

For these four commands refer back to the top of the guide when it talks about how to copy a weapons name to clip board and it will work the same on every entity.
gm_spawn
gm_spawnsent
gm_spawnswep
gm_spawnvehicle


time
chat
sv_cheats
sbox_noclip
sbox_playershurtplayers

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=170589737&searchtext=commands
21 Comments
Beeesy 6 Feb, 2023 @ 12:02pm 
When I try to bind the radial menu with bind b +gb-radial or any other key I get the following two errors in console after using the key:
Unknown command: +gb-radial
Unknown command: -gb-radial

The radial menu will never open although I can use commands like dhinline_menu . Does someone have a solution?
Rasmordem 19 Dec, 2022 @ 4:12pm 
But incrementvar is still best with commands that use more numbers that are greater than 1. like "mat_queue_mode". Using Incrementvar on that with the values "0 2 1" at the end will allow you to toggle between 0, 1, and 2 with each use.
Rasmordem 19 Dec, 2022 @ 3:57pm 
@Pinhead Larry

Hello again.

I discovered something that is easier to use than "incrementvar" and might work better. Simply "toggle"

"toggle <command>"

You just add "toggle" before any command that isn't a toggle command already.

"toggle cl_showfps"
Rasmordem 14 Oct, 2022 @ 8:08pm 
Ah, nevermind. I figured it out. It can't be in quotes, I thought quotes needed to be in the command because of the spaces but that is not the case for incrementvar.
Rasmordem 14 Oct, 2022 @ 2:34pm 
@Pinhead Larry cl_showfps, like the example you provided.
Pinhead Larry  [author] 13 Oct, 2022 @ 11:37pm 
@Rasmordem which command did you use?
Rasmordem 13 Oct, 2022 @ 7:45pm 
Does the "incrementvar <command> 0 1 1" not work any more? I followed the example and it does not make it a toggle, it does nothing. What am I missing?
King_Bee01 20 Feb, 2022 @ 3:17pm 
I have the same thing as ZuFy I can't go back to my last menu using my back I can only go one way can someone look at this and see if anything brake
ZuFy 16 Jul, 2021 @ 5:38pm 
Yes this is super old, but I can't seem to get the menu to reload the last preset after you go one menu deep. I tried using this command but it doesn't seem to work load_preset ____last
Cocoa Puffs 28 Aug, 2020 @ 10:25pm 
hey can you help me? the radial menu is not showing up. like, at all. i can only customize it, but i cant see anything