public static void PushFunctionFromTable(this LuaState lua, LuaTable tbl, string funcName)
    {
        var idx = tbl.GetFunction(funcName);

        if (!idx.V.TtIsFunction())
        {
            throw new Exception($"Not found function {funcName} in table {tbl}");
        }
        lua.PushStkId(idx);
    }