Help! Help with Esp

norka

Platinian
Original poster
Sep 11, 2020
15
8
3
22
Kyiv
Hello all. What should I do with ESP View. How to add this to main.cpp

public void DrawLine(Canvas cvs, int a, int r, int g, int b, float lineWidth, float fromX, float fromY, float toX, float toY) {
this.mStrokePaint.setColor(Color.rgb(r, g, b));
int i = a;
this.mStrokePaint.setAlpha(a);
this.mStrokePaint.setStrokeWidth(lineWidth);
cvs.drawLine(fromX, fromY, toX, toY, this.mStrokePaint);
}
 
  • Like
Reactions: ranzen123

Sevol

Retired Staff
Retired but loved <3
Jun 8, 2019
219
5,905
193
Russia
it is just a small piece of everything. you need to determine the position of the player of the enemy team, draw a line. and this is just a part that is usually found in java, not c ++
 

TheLGL

Awesome Active Platinian
Skilled
Feb 19, 2020
156
4,144
193
UK

Tiahh

Solid & Active Platinian
Jan 12, 2018
75
44
18
37
No! You cannot implement ESPView.java in an cpp file...
What you should do is adding ESPView.java inside the java files of your mod menu and add inside the Service your "Canvas Start" / Tell to the android system to start your ESPView.java class...

After of it, add ESP.h

And add JNI (Java Native Interface) part. After of it, you need to find objects world position and convert them with WorldToScreen function.
After of it draw in the WorldToScreen Vector...
 
  • Like
Reactions: Twrks and HizroMxDz