View previous topic :: View next topic |
Author |
Message |
beatzzz23 How do I cheat? Reputation: 0
Joined: 05 Mar 2024 Posts: 9
|
Posted: Sun May 19, 2024 7:00 am Post subject: lua tutoriail script |
|
|
Hello! everyone can anyone guide me how can i make this scripte a infinte loop cause when ever i try it! works only once
{$lua}
[ENABLE]
local hlt = ('["Tutorial-x86_64.exe"+00325AA0]+818')
if readFloat(hlt) <= 5000 then writeFloat(hlt,5000)
end
[DISABLE] |
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 146
Joined: 06 Jul 2014 Posts: 4485
|
Posted: Sun May 19, 2024 9:24 am Post subject: |
|
|
Code: | {$lua}
if syntaxcheck then return end
if not uniqueTimerName then
uniqueTimerName = createTimer()
end
[ENABLE]
uniqueTimerName.OnTimer = function(t)
local hlt = getAddressSafe'["Tutorial-x86_64.exe"+00325AA0]+818'
if not hlt then
t.Enabled = false
error'Bad pointer'
end
if readFloat(hlt) < 5000 then
writeFloat(hlt, 5000)
end
end
uniqueTimerName.Enabled = true
[DISABLE]
uniqueTimerName.Enabled = false |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
beatzzz23 How do I cheat? Reputation: 0
Joined: 05 Mar 2024 Posts: 9
|
Posted: Thu May 23, 2024 9:14 am Post subject: |
|
|
local h = ('["Tutorial-x86_64.exe"+00325AA0]+818')
local b = ('["Tutorial-x86_64.exe"+00325AA0]+820')
if readFloat(h) <= 5000 then writeFloat(h,5000) end
if readDouble(b) <= 5000 then writeDouble(b,5000) end
if readFloat(h) == 5000 then
repeat
writeFloat(h,5000)
until isKeyPressed(VK_7)
if readDouble(b) == 5000 then
repeat
writeFloat(h,5000)
until isKeyPressed(VK_7)
end
end
Can anyone tell what i did wrong in this couse when ever i try to enable the script CE stops responding |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 463
Joined: 09 May 2003 Posts: 25478 Location: The netherlands
|
Posted: Thu May 23, 2024 10:53 am Post subject: |
|
|
This code runs in the main thread.
Window messages get handled when the function exits, which it never does.
you can either run the code in a different thread using
Code: |
createThread(function()
..your
code...
end)
|
or call processMessages() in your loop _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
beatzzz23 How do I cheat? Reputation: 0
Joined: 05 Mar 2024 Posts: 9
|
Posted: Fri May 24, 2024 3:13 am Post subject: |
|
|
-- Can anyone tell what's wrong here cause the code works for hlt & not for bullets when i press the (VK_8) it dose not break and keeps running? some times it dosen't work for bullets & keeps going down
local h = ('["Tutorial-x86_64.exe"+00325AA0]+818')
local b = ('["Tutorial-x86_64.exe"+00325AA0]+820')
createThread(function()
if readFloat(h) <= 5000 then writeFloat(h,5000)
if readDouble(b) <= 5000 then writeDouble(b,5000)
while readFloat(h) == 5000 do
repeat
writeFloat(h,5000)
until isKeyPressed(VK_7)
break
while readDouble((b) == 5000) do
repeat
writeDouble(b,5000)
until isKeyPressed(VK_8)
break
end
end
end
end
end
) |
|
Back to top |
|
|
beatzzz23 How do I cheat? Reputation: 0
Joined: 05 Mar 2024 Posts: 9
|
Posted: Sat Jun 01, 2024 1:10 pm Post subject: |
|
|
Dark Byte wrote: | This code runs in the main thread.
Window messages get handled when the function exits, which it never does.
you can either run the code in a different thread using
Code: |
createThread(function()
..your
code...
end)
|
or call processMessages() in your loop |
Can you please tell how to use this processMessages() in your loop |
|
Back to top |
|
|
|