Lua:inSystemModule

From Cheat Engine
Revision as of 04:19, 21 June 2026 by Leunsel (talk | contribs)
Jump to navigation Jump to search

<> Lua API Reference

function inSystemModule(address) : boolean

Returns true if the given address is inside a system module.

Function Parameters

Parameter Type Description
address Integer or CEAddressString The address to check.

Returns

boolean — True if the given address is inside a system module, otherwise false.

Examples

local address = getAddress("KERNEL32.AddAtomA")

if inSystemModule(address) then
  print("The address is inside a system module")
else
  print("The address is not inside a system module")
end

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Related Functions