Jump to content

Counter-Strike: Global Offensive Hack
VAC Undetected

Buy Now

Rust Hack
EAC Undetected

Apply Now

Team Fortress 2 Hack
VAC Undetected

Buy Now

Counter-Strike: Source Hack
VAC Undetected

Buy Now

Garry's Mod Hack
VAC Undetected

Buy Now
Royal News
  • VAC & VACNet safe
  • Check the feedback forum to get free days added to your subscription
  • Safest hack provider since 2007
  • royalhack.net is by no mean associated with any other cheat provider
  • Beware of scammers and copies
Sign in to follow this  
UnstucK

GMOD Weapon's real name ESP

Recommended Posts

Most GMOD hacks uses the entity's class name for their Weapon ESP.

But that's not how I do it.

Instead of m4a1_chantico_fire it will display M4A1's Chantico's Fire, which is what we see on HUD.

The solution is simple, we have the GetPrintName() method available on CBaseCombatWeapon class.

Just get it's virtual index and you are ok.

But that will work with "default" or imported weapons from Source games (like CSS's AK47).

After debugging, you will notice that your entity class becomes CWeaponSWEP for custom weapons/items.

That class override CBaseCombatWeapon::GetPrintName()

So again, find its virtual index, and it's almost over !

Now, in your ESP loop, just check the entity class (is CBaseCombatWeapon or CWeaponSWEP) and cast accordingly, then call GetPrintName.

 

image.thumb.png.d892d1102438e56c1c1149a7a4829823.png

image.thumb.png.d8ddf8dbc8dc1f3d8b78d3b2e4f49fd5.png

 

image.thumb.png.435bf0e188e7bd6c2142c8ac7d7992c2.png

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Read Terms of Use to continue