attempt to call method 'PreventAttack' (a nil value)

[ERROR] gamemodes/terrortown/gamemode/cl_keys.lua:33: attempt to call method 'PreventAttack' (a nil value)
  1. unknown - gamemodes/terrortown/gamemode/cl_keys.lua:33

I think it came since the recent update, we dont know how to fix it, since the owner said he already found the “fix” applied, but it still occours.

[editline]15th August 2015[/editline]

Yes you will say it has been solved that theres an addon overriding something, but I checked the whole addons folder and theres no /lua/terrortown/ folder anywhere.

If you are using my Octagonal HUD, its been fixed.

We use TTT Whiteout hud

Oh dear, I have to convert that one too… Its not hard, just tedious

So to fix the error I just would have to add the function to wepswitch.lua, right?

[editline]15th August 2015[/editline]

Yup, fixed.