The gamemode library provides functions relating to the gamemode system in Garry's Mod.
Called by the engine to call a hook within the loaded gamemode.
The supplied event 'name' must be defined in the active gamemode. Otherwise, nothing will happen - not even hooks added with hook.Add will be called.
This returns the internally stored gamemode table.