Sorry for necroing a long dead post, but I'm having a similar error and I've looked at the documentation you've linked. When I try to have GMLive reload an object's Draw GUI event, i get
[GMLive][7/14/2026 3:11:58 PM][ERROR] Runtime error: [error] Script index must be a number, got `undefined` (undefined)
The error in question stems from this nested function:
function GUIMask() {
live_auto_call
static surf = undefined;
static Mask = function() {
live_name = "GUIMask:Mask"
if (live_call()) return live_result;
if (not surface_exists(surf)) {
surf = surface_create(display_get_gui_width(), display_get_gui_height());
}
surface_set_target(surf);
draw_clear_alpha(c_black, 0);
gpu_set_colorwriteenable(false, false, false, true);
};
static Content = function() {
live_name = "GUIMask:Content"
if (live_call()) return live_result;
gpu_set_colorwriteenable(true, true, true, false);
};
static Render = function() {
live_name = "GUIMask:Render"
if (live_call()) return live_result;
gpu_set_colorwriteenable(true, true, true, true);
surface_reset_target();
draw_surface(surf, 0, 0);
};
}
GUIMask();Any help would be appreciated. I'm using Game Maker LTS 2026.0.0.16 with Runtime v2026.0.0.23.