# Problem with list leaderboard from lua runtime function

**URL:** <https://forum.heroiclabs.com/t/problem-with-list-leaderboard-from-lua-runtime-function/951>\
**Category:** Game Design\
**Tags:** server-framework\
**Created:** [September 1, 2020, 4:16pm UTC](https://forum.heroiclabs.com/t/problem-with-list-leaderboard-from-lua-runtime-function/951 "2020-09-01T16:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![antoniocapizzi95](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/antoniocapizzi95/32/234_2.png) [@antoniocapizzi95](https://forum.heroiclabs.com/u/antoniocapizzi95)\
**Post date:** [September 2, 2020, 9:20am UTC](https://forum.heroiclabs.com/t/problem-with-list-leaderboard-from-lua-runtime-function/951/3 "2020-09-02T09:20:54Z")

</div>

I’m using this code:

```auto
local records, owner_records, next_cursor, prev_cursor = nk.leaderboard_records_list(id, owners, limit)

```

As id I put the id of a leaderboard containing a lot of rows. After I return the length of “records” (is a table) and I obtain 0. This is strange, because if i try to get the same leaderboard from client (with Unity library), i get 100 rows (i set the limit to 100).

---

_[View the full topic](https://forum.heroiclabs.com/t/problem-with-list-leaderboard-from-lua-runtime-function/951)._
