Lua:getCurrentMemscan

From Cheat Engine
Revision as of 16:59, 21 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function getCurrentMemscan() : MemScan

Returns the current memory scan object.

If tabs are used, this function returns the MemScan object of the currently selected tab.

Function Parameters

This function has no parameters.

Returns

MemScan — The current memory scan object.

Examples

local memscan = getCurrentMemscan()

if memscan ~= nil then
  print("Current MemScan object: " .. tostring(memscan))
else
  print("No current MemScan object available")
end

Main Pages

Core Lua documentation entry points

Lua
Script Engine

"""