LUA Thread

TheyCallMeTim13

Wiki Monster
Talents
Fearless Donors
Mar 3, 2017
411
45
28
#1
https://wiki.cheatengine.org/index.php?title=Lua:Class:Thread
Lua:
local function luaThread(thread)
    while RunLuaThread do
        -- Body
        sleep(0)
    end
    thread.terminate()
end
RunLuaThread = true
createThread(luaThread)
CEA:
{$lua}
------------------------------ ENABLE ------------------------------
[ENABLE]
local function luaThread(thread)
    while RunLuaThread do
        -- Body
        sleep(0)
    end
    thread.terminate()
end
----------------------------------
if syntaxcheck then return end
RunLuaThread = true
createThread(luaThread)
------------------------------ DISABLE ------------------------------
[DISABLE]
if syntaxcheck then return end
RunLuaThread = false
 
Last edited:
Top Bottom