KO
|
EN
gitlite — search
Search
#python
#ai
#claude
#rust
#llm
#claude-code
#cli
#markdown
#ai-agents
#nodejs
#mcp
#android
GMod-Binding
★ 20
Open GitHub ↗
Button binding for Garry's Mod
Download README (.md)
Explore Similar Repositories
GarrysModAmongUs
:
Among Us, re-imagined in Garry's Mod
RealCSM
:
Real CSM - a real CSM addon for Garry's Mod
dreamwork
:
No description available.
ttt_discord_bot
:
Dead players can't talk! - A Discord-Bot that mutes dead TTT players
rebase
:
Faster and improved gamemode `base` for Garry's Mod
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
GMod-Binding
?
Download (.md)
# Garry's Mod Binding This is a simple script that lets you create bindings for [keys](https://wiki.garrysmod.com/page/Enums/KEY), as well as [mouse](https://wiki.garrysmod.com/page/Enums/MOUSE) and [controller](https://wiki.garrysmod.com/page/Enums/JOYSTICK) buttons. It only works clientside, since on serverside you can use [the numpad library](http://wiki.garrysmod.com/page/Category:numpad). Use it for whatever you want, and have fun! ## Example Usage ### Adding a binding: ```lua bind.Add( KEY_R, "<UNIQUE_NAME>", function() notification.AddLegacy( "This script works!", NOTIFY_GENERIC, 2 ) end ) ``` ### Adding a mouse binding: ```lua bind.Add( MOUSE_LEFT, "<UNIQUE_NAME>", function() notification.AddLegacy( "Left clicked!", NOTIFY_GENERIC, 2 ) end ) ``` ### Removing a binding: ```lua bind.Remove( KEY_R, "<UNIQUE_NAME>" ) ``` ### Printing all the bindings: ```lua PrintTable( bind.GetTable() ) ``` ## Lite Version For people who only want to bind a single key. ```lua local FirstPressed = false hook.Add( "Think", "CallBinding", function() local cache = input.IsButtonDown( <BUTTON> ) if cache and FirstPressed then <CODE> end FirstPressed = not cache end ) ```