I just updated my gmod ttt server and whenever a traitor tries to knife someone everyone disconnects because of lua errors. When I looked in console i found the following errors.
[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_knife/shared.lua:66: attempt to call global 'ValidEntity' (a nil value) 1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_knife/shared.lua:66 Disconnect: "Too many Lua Errors! Sorry!". Disconnect: "Too many Lua Errors! Sorry!". [ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_knife/shared.lua:267: attempt to call global 'ValidEntity' (a nil value) 1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_knife/shared.lua:267
My server’s knife shared.lua file is at http://pastebin.com/z7Lvw2Ry The only way it is different from the default file is that the damage for the knife is 100.
How do I fix this so people don’t disconnect whenever someone is stabbed?