Garry's Mod Module
Well hello there, I'm very much interested in getting to learn how one would code a garrys mod client side module that can be used to bypass certain cvars.
I have looked around, searched and tried but I'm still not fully grasping how I would do it.
I've managed to compile a module but I am unable to load it ingame.
It's an empty module due to the lack of knowledge on how I would do it.
So all help would be appreciated.
You have to get the EngineCvar interface then call FindVar, which returns a pointer to the ConVar. Be careful which FindVar you call because one returns a constant. Then you have to set the flags and the callback or just call SetValue in the ConVar. I manually overwrite the flags and callback, although not necessary I find it more convenient since you can just set the ConVar's value in console instead of forcing it. If you aren't a noob it should take you all of 10 minutes to find the offsets in IDA or in the SDK, but seeing as you are, it will take you significantly longer. I don't use a module, so I can't help you with the GMOD module bullshit. By the way if Garry ever updates his anti-cheat, this method of bypassing SE will most likely be patched. I suggest looking through some of the mac binaries and figuring out how to load luas how the engine does. If you do it that way you can load luas on the menu.