Have to has 1 meaning: Necessity.
Necessity: something that must be done
Example: I have to go to school.
Notice that in spoken English, we often shorten have to to “hafta” and has to to “hasta.” These forms are used in casual conversation, but never in formal writing.
Notice that there is no contraction for have to.