> For the complete documentation index, see [llms.txt](https://pellix-1.gitbook.io/pellix-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pellix-1.gitbook.io/pellix-docs/tables/entitylist.md). Agents can also search and read this documentation through its [MCP server](https://pellix-1.gitbook.io/pellix-docs/~gitbook/mcp).

# entitylist

Interface to perform operations with entities.

**Functions:**

```lua
entitylist.get_base(index: number [, cached: boolean = false]): uintptr_t | nil
```

Returns entity base by index.

```lua
entitylist.get_base_from_handle(handle: number [, cached: boolean = false]): uintptr_t | nil

-- Example
local handle_offset = schema.get("CCSPlayerController", "m_hPawn")
local controller_base = entitylist.get_base(1)
local handle = memory.read_dword(controller_base + handle_offset)
entitylist.get_base_from_handle(handle) -- 0x228E9B24000
```

Returns entity base from handle.<br>

\
\`
