Pump Shotgun Lua Error

Every now and then I get the following lua error


[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_m3/shared.lua:265: attempt to call global 'ValidEntity' (a nil value)
1. GetHeadshotMultiplier - gamemodes/terrortown/entities/weapons/weapon_ttt_m3/shared.lua:265
2. unknown - gamemodes/terrortown/gamemode/player.lua:772
3. FireBullets - [C]:-1
4. ShootBullet - gamemodes/terrortown/entities/weapons/weapon_tttbase/shared.lua:323
5. unknown - gamemodes/terrortown/entities/weapons/weapon_tttbase/shared.lua:247

I’ve posted the shared.lua file at http://pastebin.com/K87ui9gm

How do I fix this error?

Replace any “ValidEntity” with “IsValid”

next time try and look at https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1

Thank you for answering my question.

No problem. Solved?