fivem-docs
fivem-docs copied to clipboard
Use CommandAttribute instead of API.RegisterCommand
I feel this is much easier to understand than creating a new Action, and what not. Also makes code look much cleaner.
Not entirely sure what happened here, it seems like you modified creating-your-first-script-csharp to process scripting commands, but the guide is explicitly written, to explain a user how to go about creating their first script. It should provide some basic examples, it looks like some of those examples were removed by looking at this PR, that should be corrected :-)
This is already apart of the tracker https://github.com/citizenfx/fivem-docs/issues/466, going to close this as it will get rewritten later