The prevailing party in such proceedings may recover his costs from his opponent, provided that no costs shall be taxable against the state nor the attorney general when acting as relator, but such costs shall be taxable against and recovered from a private relator whenever the judgment is for the defendant.
NMS § 44-3-11