Difference between revisions of "Lua:targetIs64Bit"

From Cheat Engine
Jump to navigation Jump to search
m (Added CodeBox Template.)
m (Syntax Highlighting.)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
{{CodeBox|'''function''' targetIs64Bit() ''':''' boolean}}
 
{{CodeBox|'''function''' targetIs64Bit() ''':''' boolean}}
  
Returns `true` if the process Cheat Engine is attached to is 64-bit; otherwise returns `false`.
+
Returns '''true''' if the process Cheat Engine is attached to is 64-bit; otherwise returns '''false'''.
  
 
{{LuaFunctionParametersNone}}
 
{{LuaFunctionParametersNone}}
  
 
=== Example ===
 
=== Example ===
<pre>
+
<syntaxhighlight lang="lua" line>
 
print(targetIs64Bit() and "x64" or "x86")
 
print(targetIs64Bit() and "x64" or "x86")
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
 
{{Process}}
 
{{Process}}

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