02-14-2016, 04:14 AM
After a quick search for the Multi Theft Auto API documentation it looks pretty similar to how we do it. Or at least the way you bind an event. Here is an example on how you bind a console command:
The string you return is what the console/command block will output.
Currently we use the Info.lua file more often though. It allows you to easily generate documentation for your plugin.
function HandleHelpCommand(SplitArguments) return "This command has not been implemented yet" end cPluginManager:BindConsoleCommand("help", HandleHelpCommand, "Shows all the commands")
The string you return is what the console/command block will output.
Currently we use the Info.lua file more often though. It allows you to easily generate documentation for your plugin.