How to get weapon npc info ?

how to get the weapon info of the npc ?

I tried " GetActiveWeapon():GetPrintName() " but nothing I get an error.

I just want to see this and print this info in my hud.

Thanks

Well you can do
[lua]LocalPlayer():GetEyeTrace().HitPos:Entity():GetActiveWeapon():GetPrintName()[/lua]

And print it when you’re looking at them

thanks it’s working :slight_smile:

You’re welcome.