Lua:targetIs64Bit

From Cheat Engine
Revision as of 00:55, 5 December 2025 by Leunsel (talk | contribs) (Added CodeBox Template.)
Jump to navigation Jump to search
<> Function

function targetIs64Bit() : boolean

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

Function Parameters

<none>

Example

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

See also

Lua
Script Engine

Related Functions

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