Garry's Mod

Garry's Mod

Custom Taunt Menu for Prop Hunt
20 Comments
Brumble  [author] 7 Dec, 2022 @ 5:15am 
I think you're right.
Zetzaro 25 May, 2021 @ 2:30pm 
Got it! I understand now. I do have some further problems sadly but it did open.
The first is that using the default file, I see an error:
[ERROR] lua/autorun/tauntmenu.lua:65: '}' expected (to close '{' at line 22) near 'add'

I commented out the 3 lines found at line 65 and that seemed to resolve it, they didn't seem to be code and were instead instructions. The next problem is that although the menu opened with C, clicking Next for next page closed the menu instead. However, at that point it cannot be reopened, an error appears in chat saying it is already open. I feel like this could be due to /* and */ not being recognised as comment handlers like -- is. I think it's reading all the pages code and breaking somewhere perhaps? I could be completely wrong of course.
Brumble  [author] 25 May, 2021 @ 2:09pm 
lua = goes inside FTP @ Autorun/

FOLDER (tauntmenu/) goes inside gmod/addons/
Zetzaro 25 May, 2021 @ 1:41pm 
Sorry, I must seem stupid at this point, tad confused. Inside my own /addons on my PC, I found the tauntmenu as custom_taunt_menu_for_prop_hunt_1238175881.gma
Running this though the gmad.exe or Gmad Easy Addon Extractor gives me a file called the same name, that contains just a lua file, that then contains just tauntmenu.lua and that is it.

Are you saying I need to put that entire folder made through Gmad Easy Addon, into the /addons folder of my FTP and that's all? I don't need to do anything in ip/lua/autorun like step 9 mentions? Or do I need to have the entire file in /addons and also have the tauntmenu.lua inside /lua/autorun?
I have tried just now to only have the tauntmenu file inside /addons but that didn't work. So it looked like /addons/tauntmenu/lua/tauntmenu.lua
Brumble  [author] 25 May, 2021 @ 1:28pm 
So, pop the .gma addon inside the gma's with the others.

Extract the folder so you end up with a "tauntmenu" folder, and pop that in your FTP (on your server) gmod/addons/

and the autorun files on your server autorun/

it's not a clientside plugin, its for FTP/Server use.
Zetzaro 25 May, 2021 @ 1:24pm 
I used the Gmad inside Garrysmod/Bin and also the Easy GMad route. Both of these gave me the tauntmenu.lua. I then tried using the FTP to add the file to ip/garrysmod/lua/autorun and also tried ip/garrysmod/lua/autorun/server due to it being a hosted server. Neither of these worked. There is no IP/lua/autorun route from what I can tell.
I didn't edit the file at all due to using default taunts and PS2. After those attempts I did edit the file a bit and my actual taunts due to 29 (Running in the 90's) never turning off when used by a prop. Just makes the noise endlessly so I removed the taunt and dropped all the numbers after 29 by one.
Brumble  [author] 25 May, 2021 @ 1:15pm 
1) Subscribe to this addon.
2) Lauch Gmod to download the addon then quit.
3) Head over to garrysmod/addons and look for the tauntmenu.gma
4) Download the latest version of gmad (Addon Extractor.)
5) Copy the tauntmenu.gma into the gmad folder.
6) Run gmad (a folder called tauntmenu will appear)
7) Open tauntmenu.lua and edit to add your custom taunts. (Don't edit if you use default taunts)
8) If you use Pointshop 1, scroll down to line 130 to see how to replace PS2 code with PS1 code
9) upload the tauntmenu.lua to your FTP (IP/lua/autorun/)
Enjoy!

Dont put the file in Autorun... decompile the addon using gmad.exe - then move the addon folder into gmod/addons

Look for tauntmenu.gma, extract it with gma.exe and edit as you see fit.
Zetzaro 25 May, 2021 @ 12:37pm 
Hi! Same as DizzyAdam below, nothing I have done has worked. I added it to my workshop collection, then put the lua file in the Autorun > server > *here*. I thought this was all I needed but I'm not seeing anything appear inside Prop Hunt. Is there a console command usable to force it to appear and check it works? Where should I begin to figure out the problem?
Also, I sent a friend request without reading your profile or considering how many you must get, sorry about that!
Brumble  [author] 10 May, 2020 @ 8:07am 
That's strange, the sound file should play instantly, check your code and ensure net.Start is enabled and not committed out.

2) yeah at the bottom of the code you will see KEY="F3" end) -- you can change this to whager you want.

3) You could create yourself a delay, or a timer use Timer.Create to generate a delay beteween sound files.
RevampPakrati 22 Apr, 2020 @ 7:06am 
Hi The Realist, I will have questions for you regarding tom BetterTon Menu that you have made.

1) When I click on a sound it disappears and reappears in the next round, how do I keep it?

2) Is it possible to change the "F3" to access the menu?

3) How to avoid spamming?

Thank to you and MrBrumble
Brumble  [author] 15 May, 2019 @ 3:39am 
Trevor, add me on steam and I'll see what I can do for you.
CBTwizard 24 Apr, 2019 @ 2:17pm 
Yeah at this point I have tried everything, even the workshop lua in the server, it doesnt seem to want to show up in game, not even sure if it is being recognized by the server, I even put in a whole new keybind script and still nothing :(
CBTwizard 24 Apr, 2019 @ 4:28am 
Hi there, I spent 4 hours doing all the script and I can't seem to get it to show in game, here is what I have done in hopes you can help:
Added to workshop collection
Added to addons
Tried binding the key to V, then to C, neither worked

I suspect it is the keybind code, everything else is fine if you could possibly take a look at the Lua?
Many thanks
Kaylomei 10 Apr, 2019 @ 10:21pm 
I know this is a bit late, but I just now found this. I completely customized this menu myself four years ago to dynamically add pages based on the number of taunts, which significantly reduces the size of the script. It also stores a rolling stacked list of the last several taunts (configurable) and removes the buttons from the menu, restoring the earliest-used taunt as each new taunt is played.

Mine does not award PS points for taunting, though I'm sure that bit of code could easily be added. Also check out https://wiki.garrysmod.com/page/Global/SoundDuration to automatically get the length of the taunts if the sound files are all .wav format. I do believe the sounds need to be precached in order for this to work.

Anyway, here's the link. Feel free to do as you wish with it, including use it here if you want!
https://github.com/therealist/PH_BetterTauntMenu
Oljo 28 Jul, 2018 @ 10:29am 
Would it be possible to add in a "how to add more taunts"? i'm a bit dumb on this stuff, but there are some sounds i'd like to add as taunts for my friends
Brumble  [author] 20 Jan, 2018 @ 1:52am 
Hi, thanks for subscribing!

Okay, so if you're editing it with your own custom taunts then all you need to do are these steps.

1) If you have a workshop lua with resource.Addworkshop("ID") -- then right click this page, copy URL and paste the ID only in your lua.

2) If you've subscribed and extracted this addon with gmad all you do is put the tauntmenu.lua in your lua/autorun/server/ folder on your FTP (dedicated server)

If you're running a non-dedicated place it inside lua/autorun/

A ROUSING DONUT 19 Jan, 2018 @ 4:12pm 
Hey can you explain step 9 a little bit more? I've got the tauntmenu.lua but I'm not sure how to get it working with the server.
Yogpod 2 Jan, 2018 @ 10:59am 
n o i c e
Brumble  [author] 29 Dec, 2017 @ 2:25am 
Thank you all for subscribing!
Don't forget to rate my addon 5 stars and give it a thumbs up! :)
Brumble  [author] 21 Dec, 2017 @ 11:13am 
Thank you for subscribing to my addon.
If you need any help with it, don't hesitate to either comment here or add me on steam and I'll do my best to help.

Just an FYI:

Button and the background use RGB color code, it's currently default to blue.
If you don't like the position of it, please use the cvar command to get the position of your cursor and copy/paste that into the code in place of the current axis.