mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

onClientCoreCommand should pass arguments as parameters

Open PlatinMTA opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe.

Right now onClientCoreCommand can be used to know when an user uses a hardcoded clientside command. That's good, but I would like to be able to see the arguments passed to the command, particularly to use certain hardcoded commands as alias for commands in my gamemode.

Describe the solution you'd like

Pass arguments as parameters of onClientCoreCommand (maybe don't pass the arguments for connect so you don't expose a server password?)

Describe alternatives you've considered

Make it possible to add custom commands with hardcoded commands name.

addCommandHandler("showcol", function ()...end) wont work

Additional context

No response

Security Policy

  • [x] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

PlatinMTA avatar Apr 05 '25 10:04 PlatinMTA