Solved Need help making ESP in Gmod

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

RaikenAres

Full Member
Apr 2, 2019
2
112
0
Game Name
Gmod
How long you been coding/hacking?
3 months
Coding Language
C++
I've been trying to make an ESP in gmod recently, but something is messing up.

I think I have narrowed it down to being an incorrect view matrix.
This is the current matrix I am getting with "engine.dll + 0x3FEC94"
matrix.png


I'm using the same w2s function as my csgo esp, so I know it works correctly.

I was doing a lot of searching, and saw offsets such as 0x2D4 and that the matrix in gmod is "weird".
Just wanted to know if anyone could point me in the right direction.
 

Oskars

Jr.Coder
Dank Tier Donator
Nobleman
Sep 13, 2017
166
2,698
17
Well my issue was finding the start of the correct matrix, so what I did is I used cheat engine to find possible viewmatrixes(Using looking up/Looking down method) then I made a simple program and I would feed it the viewmatrix address and I could increment it and decrement it with keys and I would call w2s with position Vec3(0,0,0), It took me a minute to find the viewmatrix that way. I'm sure there are better ways, but thats how I found it. The problem most of the time is locating the start of the matrix at least for me.

https://guidedhacking.com/threads/how-to-get-started-with-learning-viewmatrix.13663/
 
Last edited by a moderator:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods