" \n" ) -Prints out the first word typed -after command will be first 2 words. Create a console command that says -whatever is given to it in the server console. ![]() This will allow you to see who typed the command and the function getAutoCompleteOptions (commandName,args ) return endĬoncommand.Add ( "m圜C",m圜ommand,getAutoCompleteOptions ) -Now these options in getAutoCompleteOptions will show up while the user types -m圜C in the console. PrintTable (args ) - Print out all the arguments end -Put three options in the autocomplete list - Red, green, and blue. Create a console command that says whatever is given to it in the server console. This will create a console command and give it autocomplete options. ![]() Prints "Printing Something" to the console of the server. ![]() When the player types "PrintSomething" in their console, the command "fPrintSomething" is called.įunction fPrintSomething ( player, command, arguments )Ĭoncommand.Add ( "PrintSomething", fPrintSomething ) ![]() Concommand.Add( String commandName, Function commandFunction )Ĭreates a console command that runs a function in lua with optional autocompletion function and help text.Ĭoncommand.Add
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |