> 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/rip.md).

# rip

int g\_memory.rip(int address)

```lua
result = g_memory.scan_pattern("40 38 35 ? ? ? ? 75 0E 4C 8B C3 49 8B D7 49 8B CE") -- scans for that pattern in GTA5.exe
is_session_started_ptr = g_memory.rip(result + 3)

if g_memory.read_byte(is_session_started_ptr) then
   g_logger.log_info("Session is started") 
end
```
