Q) how long do you have to be a resident of tx to get medicaid
A) According to the state of Texas you just need to show evidence of recency:
To be eligible for Medicaid, a person must be a resident of the U.S.
To be eligible for an MEPD program under Texas Medicaid, a person must be a resident of the state of Texas. The person must have established residence in Texas and must intend to remain in Texas.
Consider a person a resident of the U.S. and Texas if the person has:
established an actual dwelling place within the geographical limits of the U.S. and Texas; and
the intent to continue to live in the U.S. and Texas.
Accept the person’s statement on the application or redetermination form regarding Texas residency.
Further evidence of Texas residency is required only if Texas residency is questionable. A person can prove residency by providing document(s) that indicate a Texas address. For example, sources of evidence could be from the following:
Property, income or other tax forms or receipts
Utility bills, leases or rent payment records