mbabo Advanced Cheater
Reputation: 0
Joined: 30 Jul 2016 Posts: 74
|
Posted: Mon Mar 09, 2020 9:43 am Post subject: need help with LUA |
|
|
hi ,
am trying to make a lua script to set a breakpoints on a function to find and set
every single address used by it to 0 . ( i dont want to change the op code )
so far i wrote this in lua yet it doesn't work it gives me error something went wrong
Code: | [ENABLE]
{$lua}
function test()
function debugger_onBreakpoint()
writeFloat(EBX+4AC, 0)
debug_continueFromBreakpoint(co_run) -- continue execution
end
debugProcess(0)
debug_setBreakpoint(0x00425A43)
end
t=createTimer(nil)
timer_setInterval(t, 10)
timer_onTimer(t, test)
timer_setEnabled(t, true)
[DISABLE]
debug_removeBreakpoint(0x00425A43) -- the function address
timer_setEnabled(t, false) |
|
|