Garry's Mod

Garry's Mod

286 ratings
TTT Better Equipment menu / Shop
Type: Tool, Addon
File Size
0.013 MB
Aug 11, 2017 @ 10:43am
Feb 4, 2019 @ 8:25am
30 Change Notes ( view )

Subscribe to download
TTT Better Equipment menu / Shop

In 1 collection by Fresh Garry
Fresh Garrys TTT Server Addons
284 items
This is a Better Equipment menu / Shop Addon for TTT.

- Settings in the Settings Tab (F1)
- Searchfunction
- Sort items by name, slot and default
- Autobuy to buy a set of items by pressing a key
- Automatic autobuy at the beginning of every round
- Filter (Favorit and Autobuy)
- New favoritemarker and autobuymarker in the itemlist
- Tooltips nearly everywhere
- Configurable iconsize
- Configurable rows and colums in iconlist
- Closing the menu by pressing the key to open it (Def: C) again (Configurable)
- Configurable Colors with transperency
- Configurable markers in the iconlist
- fixed description function (ALPHA may not work 100% correct)
- Shows visual slot of items when they block a slot (BETA may not work 100% correct)
- Compatibility with TTT Vote + Totem ( ) (ALPHA Works only if you install first this addon and then TTT Vote + Totem. To be shure that it works just reinstall both addons in the correct order.)
- Compatibility with TTT2 by Alf ( )(ALPHA may not work 100% correct)

The usage of the menu should be self explanatory exapt the usage of the autobuy. To use the autobuy script type "bind [your key] autobuy" in the console to bind the key you want to use for buying automatic and add or remove items to the autobuy list in the equipment menu.

ttt_bettermenu_fixeddesc | Enables or disables the fixed description button and function. Def: 1
ttt_bettermenu_defaultorder | The default order of the menu. (1 = Default, 2 = Name, 3 = Slot) Def: 1
ttt_bettermenu_closebypressc | Closes the menu when your pressing C and its open. Def: 1
ttt_bettermenu_iconsize | The items icon size in the menu. (16-1024) Def: 64
ttt_bettermenu_rows | The rows filled with items in the menu. (1-100) Def: 5
ttt_bettermenu_colums | The colums filled with items in the menu. (1-100) Def: 3
ttt_bettermenu_custommarker | Enables or disables the custommarker in the menu. Def: 1
ttt_bettermenu_favoritemarker | Enables or disables the Favoritemarker in the menu. Def: 1
ttt_bettermenu_slotmarker | Enables or disables the slotmarker in the menu. Def: 1
ttt_bettermenu_autobuymarker | Enables or disables the autobuymarker in the menu. Def: 1
ttt_bettermenu_autobuy_roundbegin | Enables or disables if autobuy should be runed on the beginning of every round. Def: 0
ttt_bettermenu_autobuymessage | Enables or disables the autobuy messages in the chat. Def:1
ttt_fgaddons_textmessage | Enables or disables the message in the chat. Def:1
ttt_bettermenu_TTT2_desc_item_info | Enables or disables the advanced TTT2 Item Info. Def: 0

Color ConVars (I recommend using the settings in F1 menu):
ttt_bettermenu_colors_window | The color of the EQMenu window (r g b a or nil). Def:nil
ttt_bettermenu_colors_tab | The color of the tabs in EQMenu (r g b a or nil). Def:nil
ttt_bettermenu_colors_box | The color of the boxes in EQMenu (r g b). Def:r90 g90 b95
ttt_bettermenu_colors_text_title | The text color of the type in EQMenu (r g b). Def:r255 g255 b255
ttt_bettermenu_colors_text_type | The text color of the type in EQMenu (r g b a). Def:r255 g255 b255 a255
ttt_bettermenu_colors_text_description | The text color of the type in EQMenu (r g b). Def:r255 g255 b255
ttt_bettermenu_colors_text_filter | The text color in a box which shows the filter in EQMenu (r g b a). Def:r255 g255 b255 a255
ttt_bettermenu_colors_text_good | The good text color in EQMenu (r g b a). Def:r0 g200 b0 a255
ttt_bettermenu_colors_text_bad | The bad text color in EQMenu (r g b a). Def:r220 g60 b60 a255
ttt_bettermenu_colors_text_slotcap | The text color on the slotcap in EQMenu (r g b a). Def:r255 g255 b255 a255
ttt_bettermenu_colors_item_outline | The outline color of the selected item in EQMenu (r g b a). Def:r255 g200 b0 a255
ttt_bettermenu_colors_item_darkened | The color which is subtracted from the icon if you cant by it in EQMenu (r g b a). Def:r255 g255 b255 a80

The original code belongs to the Trouble in Terrorist Town Gamemode i just have edited it.
Some little parts of this addon belong to Gamefreak ( ). I used them to make this addon compatible with TTT Vote + Totem.
Credits by Alf (helping me with the compatibility)
I will remove this addon if I will be asked to.

Known Bugs:
- the compatibility with TTT Vote + Totem may not work (for tipps look at the discussion)

Feel free to report bugs!
Popular Discussions View All (1)
Jan 14, 2018 @ 3:35am
PINNED: ttt_Totem inkompatibel
< >
Fresh Garry  [author] Aug 5 @ 10:21am 
I'll Look at it as soon as possible but at the moment I have not mutch time for it. Could you maybe tell me when this error occurres and if you have TTT2 installed, so that it is more easy to me to reproduce it?
Pacifist Aug 5 @ 3:06am 
[TTT Better Equipment menu / Shop] gamemodes/terrortown/gamemode/cl_equip.lua:982: attempt to call method 'IsActiveShopper' (a nil value)
1. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:982
2. unknown - lua/includes/modules/concommand.lua:54
Fresh Garry  [author] Jul 7 @ 1:15pm 
Hi Quaetam unfortunetly at the moment i have no time for working at the addon. But you are welcome to add a pullrequest with code here: It shouldnt be too hard to fix it if your into the lua scripting in gmod. My code isnt the best because it was my second addon for gmod and its not well documented. sorry :D
Quaetam Jul 6 @ 6:25pm 
Hi Fresh Garry -- I recently installed this addon onto a dedicated server that uses the popular Custom Roles for TTT mod. The mod works perfectly for Traitors and Detectives, but whenever a custom role (Mercenary, Killer, Vampire, Hypnotist, Assassin) attempts to open the menu, nothing happens. This is the console error they've been receiving:

[Custom Roles for TTT] gamemodes/terrortown/gamemode/cl_equip.lua:208: attempt to call global 'ValidEntity' (a nil value)
1. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:208
2. unknown - lua/includes/modules/concommand.lua:54 (x2)

I have limited programming experience so I may be able to fix things on my end, but any help you could offer would be great.
Fresh Garry  [author] May 3 @ 5:59am 
Thank you for reporting that one. Unfortunately at the moment I have not the time to work on this add-on. But if anyone wants to feel free to suggest fixes here:
James76931 May 2 @ 12:40pm 
When pressing the menu button in spectate, a pop up appears saying there are script errors
Fresh Garry  [author] Apr 20 @ 11:54am 
Die Traitorwaffen sollten alle angezeigt werden, da ich das normale auslesen von TTT verwende. Probiere mal welche Items verschwinden, und ob sie tatsächlich wieder auftauchen, wenn andere deinstalliert sind.
Fresh Garry  [author] Apr 18 @ 3:17pm 
Aktuell gibt es die Möglichkeit nicht und ich habe nicht die Zeit es aktuell zu programmieren. Du kannst es gerne hier requested:
Derjeniche Apr 18 @ 8:02am 
Gibt es eine Möglichkeit, nicht bei jedem Öffnen zur Standartansicht zu defaulten? Also z.B. wenn ich Show Favorites klicke, dass danach immer standartmäßig sofort nur die Favoriten angezeigt werden?
Fresh Garry  [author] Mar 29 @ 11:53am 
Dieses Addon ist aktuell nicht mit TTT2 kompatibel somit ist das vorerst nicht möglich.