> For the complete documentation index, see [llms.txt](https://docs.cherax.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherax.vip/lua-documentation/api-reference/g_memory/get_base_address.md).

# get\_base\_address

int get\_base\_address(string module = nil)

```lua
address = g_memory.get_base_address() -- base address of GTA5.exe
address2 = g_memory.get_base_address("socialclub.dll") -- base address of socialclub.dll
```
