> For the complete documentation index, see [llms.txt](https://zarzel.gitbook.io/zarscript2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zarzel.gitbook.io/zarscript2/documentation/module/examples/loaded-players.md).

# Loaded players

This module will print everyone's name on the chat

```lua
local test = {
    on_pre_update = function()
        local list = world.entities()

        for i = 1, #list do
            local entindex = list[i]
            client.print(world.name(entindex))
        end
    end,
}

module_manager.register('hello', test)
```

![Example of output](https://3834947369-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZF1k85wSNokeus1sCw%2F-MZN8xT90he_wevd0DgV%2F-MZN9gOVcWdlmGFOIsqk%2Fimagen.png?alt=media\&token=24b17a46-7c67-46d4-add4-fe8e23f701c3)
