Strictly speaking, is an _**intransitive**_ verb when used for the meaning of " _ **to have a cramp in ~~**_ ". So, you would say {} **** rather than **** if you were to follow the dictionary.
In real life, however, quite a few native speakers do say **** as if they make it happen of their own will.
I would advise that you learn it as an "officially" intransitive verb but be ready to encounter those who might think otherwise because the "misusage" is not all that rare in this case.