Difference between revisions of "Lua:targetIs64Bit"

From Cheat Engine
Jump to navigation Jump to search
m (Added CodeBox Template.)
m
 
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}}

Latest revision as of 00:55, 5 December 2025

<> Function

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]

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

See also[edit]

Lua
Script Engine

Related Functions[edit]

createProcess
openProcess
onOpenProcess
getForegroundProcess
getOpenedProcessID
getProcessIDFromProcessName
openFileAsProcess
saveOpenedFile
setPointerSize
setAssemblerMode
getProcesslist
getWindowlist
pause
unpause
targetIs64Bit
enumModules
closeRemoteHandle