LS3 Lua Error

Whenever I spawn a generator it spams me with a lua error, something about ‘attempt to compare a number with table’ and it doesn’t show what the object needs to run, like water, energy, etc. I’ve ran the gmod svn updater a few times over but it always says nothing needs an update. How do I fix it?

Post the exact error.

entities\base_rd3_entity\d_int.lua:84: attempt to compare number with table
it’s the same error for all life support
also there’s another one whenever i open the spawn menu, which is
ERROR:GAMEMODE:‘OnSpawnMenuOpen’ Failed: gamemodes\sandbox\gamemode\spawnmenu\spawnmenu.lua63: attempt to call field ‘SpawnMEnuOpen’ (a nil value)