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

Latest commit

 

History

History
29 lines (21 loc) · 841 Bytes

readme.md

File metadata and controls

29 lines (21 loc) · 841 Bytes

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