rip

Reads an offset from the instruction and returns the resulting address.

int g_memory.rip(int address)

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

Last updated