Tutorial CSGO How to Get the Weapon ID

  • CSGO recently moved logic from 'client_panorama.dll' to 'client.dll', you must update all code that uses 'client_panorama.dll' and replace it with 'client.dll' or the code will not work.
Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

fx705HUJX0

Jr.Coder
Dank Tier Donator
Nobleman
Mar 24, 2016
65
838
0
Hello m8s,

I will tell you how to get correct WeaponID in csgo. This is all External.

Code:

C++:
ReadProcessMemory(Handle, (void*)(Base + m_hActiveWeapon), &ActiveWeapon, sizeof(ActiveWeapon), NULL);
ActiveWeapon &= 0xFFF;
ReadProcessMemory(Handle, (void*)(Client.dll + m_dwEntityList + (ActiveWeapon - 1) * 0x10), &ActiveWeapon, sizeof(ActiveWeapon), NULL);
ReadProcessMemory(Handle, (void*)(ActiveWeapon + m_iItemDefinitionIndex), &WeaponID, sizeof(WeaponID), NULL);
So now you got some Stupid Int's! Use this from now:

C++:
[COLOR="#FF0000"]enum weapons
{
	none,
	deagle,
	elite,
	fiveseven,
	glock,
	p228,
	usp,
	ak47,
	aug,
	awp,
	famas,
	g3sg1,
	galil,
	galilar,
	m249,
	m3,
	m4a1,
	mac10,
	mp5navy,
	p90,
	scout,
	sg550,
	sg552,
	tmp,
	ump45,
	xm1014,
	bizon,
	mag7,
	negev,
	sawedoff,
	tec9,
	taser,
	hkp2000,
	mp7,
	mp9,
	nova,
	p250,
	scar17,
	scar20,
	sg556,
	ssg08,
	knifegg,
	knife,
	flashbang,
	hegrenade,
	smokegrenade,
	molotov,
	decoy,
	incgrenade,
	c4
};[/COLOR]

Hope this Helps a bit, bye
 
Last edited:

Luciz

Coder
Dank Tier Donator
Nobleman
Jul 10, 2014
101
458
3
Why do you call it temp when it's the actual weapon?
 

fx705HUJX0

Jr.Coder
Dank Tier Donator
Nobleman
Mar 24, 2016
65
838
0
I dont use it like this. Just some kind of pseudo stuff. In my Code I just use the Weapon all along. With temp it was easier to show. Since the Weapon is not needed, you can just ignore it :D
 
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