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[edit]
This function has no parameters.
Returns[edit]
boolean — True if the current code is running inside the main thread, otherwise false.
Examples[edit]
1 if inMainThread() then
2 print("Running in the main thread")
3 else
4 print("Not running in the main thread")
5 end