Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

Osmos-l/tchatCommandsLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

🔥 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.

Releases

No releases published

Packages

No packages published

Languages