"help" command
complete
GTNardy
complete
I will improve the server console by outputting the built in command list when you input it wrong, and also add a "return false" on Server Console event to allow the scripter to "handle" the command so the message doesn't appear.
I recommend @Timmy creating a new idea for the RegisterConsoleCommand
T
Timmy
GTNardy: alright i'll copy it in a new idea 👍
Sebastian Jura
"it would only show the small list of console cmds" it increases user experience, someone without any/low knowlage will intuitive type this command to see what commands are availiable
T
Timmy
Sebastian Jura: Yes, and I'm not against it what I'm proposing is a solution to complete your idea, not to say that it doesn't make sense.
As i also said: "As for links to documentation, these could be placed in the description of the native commands, so that your idea could still be used."
T
Timmy
Currently there is no "real" command system like gmod's ConVars, it would only show the small list of console cmds that are defaulted in the game (like "package reload all", ...), this is fine but it seems a bit incomplete.
Imo it would probably make more sense if there was a built-in command registration feature that let anyone add any commands to their script without using the
Console
events, like:Server.RegisterConsoleCommand(
"mycoolcommand",
"My command description that will be shown by typing 'help'",
myCommandCallback
)
This way the game could keep track of all the commands, and display the complete list when the "help" command is sent, it could also be used client side.
As for links to documentation, these could be placed in the description of the native commands, so that your idea could still be used.
Another upside of this system would be some utility functions that return the table of registered commands, which would be useful if you want to make a custom help interface for example.