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.
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
WriteMem is just memcpy with VirtualProtect.
This works by changing the assembly comparing the value rather than the value itself.
this was done quite a long time ago but good job releasing something that is somewhat useful
also afaik the function that this operation is done in might be called in one of the first few functions in the ibaseclientdll but gmod never updates anyway so its irrelevant