Fix hooks.

Menu state doesn't have gmod.GetGamemode()
Merge pull request #582 from HandsomeMatt/patch-2

Fix hooks.