Get client-sided gamemode

So i want to get the active gamemode chosen by the client in the menu (bottom right). Ive tried using GAMEMODE.Name & gmod.GetGamemode() client sided, but it seems to be the same thing given by the server (happens when playing a gamemode you don’t have registered). Thanks in advance for any help. Heres a pic of what im going on about(the pic shows what shouldnt be returned



print( engine.ActiveGamemode() )




hook.Add( "Initialize", "check_gamemode", function()

	if not engine.ActiveGamemode() == "terrortown" then
		
		chat.AddText( Color( 255, 0, 0 ), "Press escape, and on the bottom right, select TTT as your active gamemode. This will fix issues with missing textures" )

	end

end )