SkillAgentSearch skills...

TchatCommandsLib

gLua library for chat commands

Install / Use

/learn @Osmos-l/TchatCommandsLib
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

: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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks0

Languages

Lua

Security Score

75/100

Audited on Apr 3, 2025

No findings