CommandSigns - WIP
#5
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:
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.
Reply
Thanks given by:


Messages In This Thread
CommandSigns - WIP - by Cpt_Redbeard - 02-14-2016, 03:10 AM
RE: CommandSigns - WIP - by NiLSPACE - 02-14-2016, 03:25 AM
RE: CommandSigns - WIP - by Cpt_Redbeard - 02-14-2016, 03:50 AM
RE: CommandSigns - WIP - by Cpt_Redbeard - 02-14-2016, 03:59 AM
RE: CommandSigns - WIP - by NiLSPACE - 02-14-2016, 04:14 AM
RE: CommandSigns - WIP - by Schwertspize - 02-14-2016, 06:44 AM



Users browsing this thread: 1 Guest(s)