It's fine to take over-the-counter acetaminophen when your joints hurt every once in a while. But if you have severe joint damage and constant pain, your doctor may prescribe something stronger.
One option is a type of medicine called an opioid. These drugs have side effects and some serious risks. You could become constipated, too sleepy or foggy, or dependent on the drug.