Originally Posted by FlyingCats
I'm pretty sure you pull cocking lever back, which opens the ejection port cover. You'll see a gear which you can adjust. Moving the gear down(I think) makes the hop-up go up and moving the gear up makes the hop-up go down.
Not sure about JG M4s, on them the ejection port cover may just be spring held shut instead of latched.