Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 512
|
Posted: Thu Jun 20, 2024 9:39 am Post subject: createThread issue |
|
|
| Code: | if (cheatThread) then
cheatThread.terminate()
cheatThread = nil
end
cheatThread = createThread(function(thread)
...
while(true) do
if (not IsAttached() or thread.Terminated) then
return 0
end
while (not IsOnFocus() or IsGamePaused()) do sleep(1) end
... |
If this piece of code is being executed twice, thread function will be no longer working
EDIT:
already fixed it, the mistake is very obvious
|
|