Luadev
Easens Garry's Mod development process
Install / Use
/learn @Metastruct/LuadevREADME
LuaDev
A simple library to help developers run lua code in-game.
SocketDev
LuaDev is now shipped with SocketDev extension. You'll need luasocket installed for this to work. It allows you to execute lua code on various destinations using your text editor. Currently there are some size limitations, but it will be fixed soon™.
Usage
lua_watch<filename.lua>- Run on self the file when its timestamp changes.
lua_send_sh<filename.lua>- Run on server and all clients.
lua_send_clients<filename.lua>- Run on a single client
lua_send_cl<client> <filename.lua>- Run on a single client
lua_send_sv<filename.lua>- Run on server
lua_send_self<filename.lua>- lua_openscript_cl through luadev
lua_run_client<part of name/steamid/userid> <code>lua_run_clients<code>lua_run_sh<code>lua_run_sv<code>lua_run_self<code>
Extra commands exist (lua_send_ent for direct entity code ending), unfinished.
Lua functions
(Desc is the string to identify errors)
luadev.RunOnServer(code,desc,extra)luadev.RunOnShared(code,desc,extra)luadev.Run(code,desc,extra)luadev.RunOnClients(code,desc,extra)luadev.RunOnClient(code,player,desc,extra)
Parameter extra is subject to change. It can essentially hold extra information to transfer with the code.
Notes
- There is no player autocomplete yet
- Embeds your steamid on errors. Does not prevent changing it though.
- Only checks if you are superadmin. Be careful who you let to use this. There is a hook for luadev access check for override.
- No GUI, use Sublime-LuaDev for example
Cvars
luadev_verbose0-9- Console debug printing
Credits
- CapsAdmin
- Noiwex
- Lixquid
- Python1320
- PotcFdk
- Morten
- Garry
- Meta Construct
Extras
- Sublime support
- https://github.com/Noiwex/Sublime-LuaDev
- Atom support
- https://github.com/Lixquid/atom-gmod-luadev
- Visual Studio Code support (wip)
- https://marketplace.visualstudio.com/items?itemName=lixquid.gmod-luadev
- GMod error console
- https://github.com/Metastruct/EPOE
- Easylua for code augmentation (outdated)
- https://github.com/CapsAdmin/fast_addons/blob/master/lua/helpers/easylua.lua
Related Skills
canvas
353.1kCanvas Skill Display HTML content on connected OpenClaw nodes (Mac app, iOS, Android). Overview The canvas tool lets you present web content on any connected node's canvas view. Great for: -
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Agent Development
111.6kThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
