Bypassing lua_openscript_cl Without Forcing Cvars
I don't use this ever, as by the time you get to run lua_openscript_cl anticheats will have fucked your Lua.
What you really want is before autorun (and init.lua) execution.
You will need to write a signature / pattern scan function which returns the address of the first byte in the pattern.
WriteMem is just memcpy with VirtualProtect.
This works by changing the assembly comparing the value rather than the value itself.
What you really want is before autorun (and init.lua) execution.
You will need to write a signature / pattern scan function which returns the address of the first byte in the pattern.
Code:
//lua_openscript_cl
DWORD SE = FindSignature("client.dll",
"\x0F\x94\xC0\x8B\xE5\x5D\xC3", "xxxxxxx"); //sete al
WriteMem(SE, "\xB0\x00\x90", 3); //mov al,00
This works by changing the assembly comparing the value rather than the value itself.

