Difference between revisions of "Lua:inSystemModule"

From Cheat Engine
Jump to navigation Jump to search
m (Examples)
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
  
 
===Examples===
 
===Examples===
<pre>
+
<syntaxhighlight lang="lua" line highlight="3">
 
local address = getAddress("KERNEL32.AddAtomA")
 
local address = getAddress("KERNEL32.AddAtomA")
  
Line 27: Line 27:
 
   print("The address is not inside a system module")
 
   print("The address is not inside a system module")
 
end
 
end
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
=== Related Functions ===
+
{{Address}}
* [[Lua:inModule|inModule]]
 

Latest revision as of 22:57, 26 June 2026

<> Lua API Reference

function inSystemModule(address) : boolean

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

Function Parameters[edit]

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

Returns[edit]

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

Examples[edit]

1 local address = getAddress("KERNEL32.AddAtomA")
2 
3 if inSystemModule(address) then
4   print("The address is inside a system module")
5 else
6   print("The address is not inside a system module")
7 end

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Symbol Related Lua Functions

Symbol lookup, address resolution, module checks, and lookup callbacks