Skip to content

AddCommandHandler problem #418

@CrosRoad95

Description

@CrosRoad95

Describe the bug
If you trying to add command example for showmemstat command, addCommandHandler returning true even command isn't added.

To Reproduce
clientside

created = addCommandHandler("showmemstat", function()
  outputChatBox( "showmemstat working?") -- will never displayed
end)
outputChatBox( tostring(created) ) -- true

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions