TchatCommandsLib
gLua library for chat commands
Install / Use
/learn @Osmos-l/TchatCommandsLibREADME
:fire: commandsLib :fire:
commandsLib is a gLua library for commands chat in Garry's mod that make your life easier.
Installation
- Download and import into garrysmod/addons/commandslib or garrysmod/lua/autorun
- Use it :grin:
Usage
local isValid = commandsLib.register( "hello", {
["prefix"] = { "/", "!" },
["execute"] = function( requester, options )
chat.AddText( Color( 255, 0, 0), "Hi " .. requester:Name() )
end,
["player"] = "local",
["showCommand"] = false
} )
More exemples:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate 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.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
