diff --git a/handlers/controls.lua b/handlers/controls.lua index 602614d..a412135 100644 --- a/handlers/controls.lua +++ b/handlers/controls.lua @@ -1,13 +1,12 @@ mtui.register_on_command("get_controls_metadata", function() - return { success = true, result = mtui.get_controls_metadata() } + return mtui.get_controls_metadata() end) mtui.register_on_command("get_controls_values", function() - return { success = true, result = mtui.get_controls_values() } + return mtui.get_controls_values() end) mtui.register_on_command("set_control", function(data) - mtui.set_control_value(data.name, data.value) - return { success = true, result = mtui.get_controls_metadata() } + return mtui.set_control_value(data.name, data.value) end) \ No newline at end of file