Description
Which resource(s) have this problem?
editor_gui & killmessages? idk
Describe the bug
The outputMessages function only takes string value for the message, However, killmessages sends a table to doOutputMessage event, which both editor_gui and killmessages use (idk why). When editor gets this table from killmessages, it clears everything except the renderMessage handler, which persists until the next message is sent
mtasa-resources/[editor]/editor_gui/client/outputmessage.lua
Lines 33 to 37 in 03c0861
To Reproduce
- start editor & runcode
- crun triggerEvent('doOutputMessage',localPlayer,"Hello World")
- crun triggerEvent('doOutputMessage',localPlayer,{})
- see the message
Expected behavior
The message should clear even if its wrong, also editor_gui and killmessages probably shouldn't share the same event handler but too late now i guess
Version
Multi Theft Auto v1.6-release-22953