No prothonotary, Register in Chancery, clerk of any court, or justice of the peace in this State shall be compelled to issue any writ or other original process in a civil action, or any writ of execution on any judgment, in favor of any person not a resident of this State, unless the costs of the issuing of such writ are first paid or tendered to such officer; nor shall any sheriff, coroner, or constable be compelled to execute any such writ until the legal fees for such services are first paid or tendered to such officer by the plaintiff in such action, his or her attorney or agent; any law, custom or usage of this State to the contrary notwithstanding.