-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AddCommandHandler problem #418
Comments
Low priority but returning false seems reasonable. Can you give an example of why this might be useful? Most people don't check the return value of addCommandHandler but I agree it should not return true if it wasn't a success. |
This is also not implementable server-side as the server doesn't know what client commands there are. |
|
that's not really a clean solution imo |
servers shouldn't apply. It's enough for client to prepare a table with commands available to client and omit them (return false). Its my solution. |
Describe the bug
If you trying to add command example for
showmemstat
command, addCommandHandler returningtrue
even command isn't added.To Reproduce
clientside
if you execute command
showmemstat
, only mem stat window appear.Expected behavior
Should return false for some exeptions
Screenshots
MTA Client (please complete the following information):
Multi Theft Auto v1.5.5-release-13968
MTA Server (please complete the following information):
MTA:SA Server v1.5.5-release-11751
Additional context
The text was updated successfully, but these errors were encountered: