Now, I want to use it in a cheat table Lua script to make a custom trainer (of course, it works with the generic trainer maker but reading the code generated by it didn't help).
So, I tried using the AA syntax ($asm} to switch between Lua/ASM, however it doesn't look compilable.
How can I do the AOB injection toggling function inside a lua code while still keeping auto assembler code for the instructions ? I don't mind if your answer contains the lua aob scan functions, though.
Code:
-- Toggle
local activated = 0
function CEToggleBox1Click(sender)
-- ENABLE
if (activated == 0) then
{$asm}
aobscan(myLabel,49 8D 44 C4 20 4C 8B 28 41 C6 45 31 00 FF C3)
alloc(newmem,$1000)
Unfortunately, the generic trainer maker sets a hotkey in the cheat table so it actually displaces the issue because I want to make an executable without modifying the cheat tables and coding the functionalities.
Last edited by Scorm on Fri Dec 14, 2018 10:12 am; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum