Lua:inMainThread
Jump to navigation
Jump to search
Returns true if the current code is running inside the main thread.
This function is available in Cheat Engine 6.4 and later.
Function Parameters
This function has no parameters.
Returns
boolean — True if the current code is running inside the main thread, otherwise false.
Examples
if inMainThread() then
print("Running in the main thread")
else
print("Not running in the main thread")
end