Osmos-l / tchatCommandsLib

gLua library for chat commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🔥 commandsLib 🔥

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 😁

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.

About

gLua library for chat commands

License:MIT License


Languages

Language:Lua 100.0%