When, in an action for the recovery of money only, the defendant alleges in his or her answer that before the commencement of the action the defendant tendered to the plaintiff the full amount to which the plaintiff was entitled, and thereupon deposits in court, for the plaintiff, the amount so tendered, and the allegations be found to be true, the plaintiff shall not recover costs, but shall pay costs to the defendant.
NRS 18.080