Modding(Script) Question[Chat events, console]

XaenonXaenon Join Date: 2012-11-20 Member: 172654Members
So I want to make a simple mod to servers that allows a bit more commands to make my friends and I's server a bit more bearable. I know there is a built in admin system, but what im struggling with is finding proper documentation of creating new console commands. If this isn't possible, I was also thinking along the lines of having a new admin script(created from a lua mod file) and using chat commands.

So in short: Were can I find pages about Chat/Console Command API?

Comments

  • extolloextollo Ping Blip Join Date: 2010-07-16 Member: 72457Members
    API documentation ? well....

    check out the lua source files .. ConsoleCommands_Server.lua and ConsoleCommands_CLient.lua


    see what they do there?

    Use event.hook to link a console command to a lua script.
Sign In or Register to comment.