I'm uncertain what exactly you want, but I think you either and to open an inventory or show a scoreboard.
- Here is documentation on how to open an inventory: http://mc-server.xoft.cz/LuaAPI/cLuaWindow.html
- And here is documentation on how the scoreboard works: http://mc-server.xoft.cz/LuaAPI/cScoreboard.html