Difference between revisions of "Lua:targetIs64Bit"

From Cheat Engine
Jump to navigation Jump to search
m (Syntax Highlighting.)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''function''' targetIs64Bit() ''':''' boolean
+
{{CodeBox|'''function''' targetIs64Bit() ''':''' boolean}}
  
Returns true if the the process Cheat Engine is attached to is 64-bit.
+
Returns '''true''' if the process Cheat Engine is attached to is 64-bit; otherwise returns '''false'''.
  
=== Function Parameters ===
+
{{LuaFunctionParametersNone}}
<none>
 
  
== See also ==
+
=== Example ===
* [[Lua]]
+
<syntaxhighlight lang="lua" line>
* [[Help_File:Script engine|Script engine]]
+
print(targetIs64Bit() and "x64" or "x86")
 +
</syntaxhighlight>
  
=== Related Functions ===
+
{{LuaSeeAlso}}
* [[cheatEngineIs64Bit]]
+
 
* [[getOpenedProcessID]]
+
{{Process}}
* [[getAddress]]
 
* [[getNameFromAddress]]
 
* [[getCommonModuleList]]
 
* [[inModule]]
 
* [[inSystemModule]]
 
* [[enumModules]]
 
* [[debugProcess]]
 
* [[debug_isDebugging]]
 
* [[debug_canBreak]]
 
* [[debug_isBroken]]
 
* [[debug_getBreakpointList]]
 
* [[debug_setBreakpoint]]
 
* [[debug_removeBreakpoint]]
 
* [[debug_continueFromBreakpoint]]
 

Latest revision as of 19:16, 25 June 2026

<> Lua API Reference

function targetIs64Bit() : boolean

Returns true if the process Cheat Engine is attached to is 64-bit; otherwise returns false.

Function Parameters[edit]

<none>

Example[edit]

1 print(targetIs64Bit() and "x64" or "x86")

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Process Open / Creation

Process Lists / Modules

Process Control / Target State