Can I be compensated for my efforts as a witness?

As a general rule, Texas law does not authorize any compensation to witnesses testifying in criminal matters. Exceptions are made in cases where the witness is from out of state or from outside the county in which the trial is held, in which case, travel expenses and a per diem are allowed.