Garry's Mod

Garry's Mod

222 个评价
Simple spawnmenu toggle
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
10.712 KB
2023 年 10 月 19 日 下午 8:43
2024 年 2 月 11 日 下午 1:09
5 项改动说明 ( 查看 )

订阅以下载
Simple spawnmenu toggle

描述
Update 23/09/25:
As of the July 23rd gmod update the spawnmenu now includes this functionality by default.
This addon is no longer necessary so it's recommended to unsubscribe to avoid any conflicts.

Thanks to everyone who found this addon prior to the update, I hope you found it helpful!




(Yes, I am aware the F1 key exists. See below.)


What is this?
Just a little clientside script to toggle the spawnmenu or context menu open and closed using the normal binds, instead of having to hold the key down the whole time.


How do I use this?
Press subscribe, start a game, and press your normal spawnmenu/context menu key.
There is a config menu under the utilities tab of the spawnmenu if anything needs adjusting.


What is "Don't toggle when key held"?
During testing I would sometimes forget about the toggle and hold down the key anyway, so by default the script will detect when either toggle key has been held for more than a second and will use the normal hold-key-to-see-menu behaviour instead.

Hopefully this should feel pretty natural and unobtrusive, but if not then you can adjust the timing or disable the feature entirely in the ingame config menu by unticking the "Don't toggle when key held" option.


Why do I need this? Can't I just press F1 to toggle the spawnmenu?
There are a few differences between this and just using the F1 key worth noting:
▸ Toggle with F1 only works in sandbox, or gamemodes that specifically implemented it. ▸ This should work in any sandbox-derived gamemode. (Like DarkRP, for example.) ▸ This addon also allows you to toggle the context menu without holding down the C key. ▸ Still works if a server repurposes the "gm_showhelp" (F1) concommand. (MOTD, help, etc) ▸ Has some extra QoL / Convenience features, see "Don't toggle when key held" above. ▸ Easily customised via the ingame menu without using the console. (Q → Utilities) ▸ Saves laptop players from awkwardly pressing FN + F1 to toggle the menu.
This is just a quick script I whipped up for personal use and am now releasing here just in case anyone might find it handy. Use whatever works for you.


Bugs, issues, & feedback
If you've encountered an error with this addon then please let me know in a comment and I'll get it fixed.





Attribution: Thumbnail Q key icon made by Kliwir Art, sourced from FlatIcon.com
50 条留言
Sony  [作者] 9 月 24 日 下午 5:21 
@Troll
Couldn't find any mention of it in the update changelog and had to check github but you're right - Updated 3 days ago.
Thank you for letting me know
NolansaurusRex 9 月 24 日 下午 4:43 
@Troll is there a way to turn it off or no?
Troll 9 月 24 日 下午 3:58 
Addon is now partially useless after the newest update that adds this functionality
Grandgears-Senpai 9 月 21 日 下午 2:47 
@abdccgtyp Yo dumbass, read the first line of the mod, he is fully aware of this
abdccgtyp 9 月 20 日 上午 10:40 
you kind of dumbass since you literally can hold the spawnmenu by pressing f1 (by default)
BonusDucks 9 月 11 日 下午 8:55 
my left ring finger thanks you.
voidboy13 8 月 31 日 下午 3:00 
thanks for saving my finger
Aryterst 4 月 8 日 下午 9:10 
Yup still works
UneceZombine 2 月 26 日 上午 9:32 
Does this work after the spawn menu update of 2024?
andreycdjm11 2 月 1 日 上午 9:38 
bro, can you make another script to make it a third open script because I play zombies and there are 2 spawnsmenu and it won't let me open the classic one