OPINION
This is an interlocutory appeal from the trial court’s denial of pleas to its jurisdiction. Appellee Stars & Stripes Sweepstakes, L.L.C., brought suit in the 320th District Court of Potter County against the Potter County Attorney’s Office, Sonya Letson, Potter County District [sic] Attorney, the Amarillo Police Department, and Jerry Neal, Amarillo Chief of Police, seeking release of 124 electronic amusement machines, known as eight-liners.
Appellee is the owner of the machines and leased them to Sunrise Entertainment, which maintained a place of business in Amarillo, Potter County. Amarillo police officers seized the machines and other items alleged to be gambling paraphernalia while executing a search warrant at Sunrise Entertainment on May 16, 2002. The search warrant was issued by the Hon. John B. Board, judge of the 181st District Court of Potter County.
Appellee filed the instant suit on July 26, 2002. On July 31, 2002, 15 felony indictments were handed down in the 181st District Court against five individuals associated with Sunrise Entertainment. On August 16, 2002, misdemeanor charges were filed in County Court at Law No. 1 of Potter County against two others associated with the business. 1 The seized eight-liners are being held by the Amarillo Police Department.
The Potter County Attorney’s Office and Sonya Letson (Potter County) filed a plea to the jurisdiction requesting the 320th District Court to dismiss the suit against them for want of subject matter jurisdiction. The City of Amarillo (City), responding for Amarillo Police Department and Jerry Neal as Amarillo Chief of Police, filed a motion to dismiss for lack of jurisdiction, also challenging the court’s subject matter jurisdiction. After a hearing, the trial court denied both challenges to the jurisdiction. Finding merit in appellants’ *464 interlocutory appeal, we will reverse the trial court’s rulings.
APPELLATE JURISDICTION OVER INTERLOCUTORY APPEAL
We first consider our own jurisdiction over this interlocutory appeal. Generally, a Texas appellate court has jurisdiction to hear an appeal only if it is from a final judgment.
Kaplan v. Tiffany Dev. Corp.,
The term, “governmental unit” means “the state [of Texas] ...,” “a political subdivision of this state, including any city, county, ...” and “any other institution, agency, or organ of government the status and authority of which are derived from the Constitution of Texas or from laws passed by the legislature under the constitution.” Tex. Civ. Prac. & Rem.Code Ann. § 101.001(3)(A), (B), (D). Appellee’s live pleading names as defendants “Potter County Attorney’s [Ojffice ... an agency of the State of Texas ... Sonya Letson, Potter County [Attorney ... an agent of the State of Texas ... Amarillo Police Department ...” and “Jerry Neal, Chief of Police of the Amarillo Police Department.” We must determine if appellants are “governmental units” as defined by section 101.001.
This court, pointing to the doctrine that a suit against a governmental official in his or her official capacity alone is essentially a suit against the governmental entity, has held that such suits may properly be the subject of interlocutory appeals under section 51.014(a)(8) as suits against governmental units. Ware
v. Miller,
A county is specifically listed as a “governmental unit” in section 101.001(3)(B) of the Civil Practice and Remedies Code. In addition, the Office of County Attorney is created by the Texas Constitution, and therefore would also be considered a governmental unit under section 101.001(3)(D). Tex. Const, art. Y, § 21. Consequently, Letson in her capacity as County Attorney and the Office of County Attorney are entitled to appeal the district court’s order denying their plea to the jurisdiction. Civ. Prac. & Rem.Code § 51.014(a)(8).
A city in Texas is considered a political subdivision of the state and as such is a governmental unit. § 101.001(3)(B). Ap-pellee does not challenge the City’s contentions that the Amarillo Police Department is not a body separate from the City, and that appellee’s suit against the police department is thus against the City. We also have jurisdiction to consider the interlocutory appeal of Neal and the City.
PLEA TO JURISDICTION
A plea to the jurisdiction challenges the trial court’s authority to determine the subject matter of the action.
See Dolenz v. Texas State Bd. of Med. Exam’rs,
An initial cause of difficulty in this case is that appellee has not been consistent in describing the relief it seeks in its suit against appellants. Appellee’s first amended pleading in the trial court, entitled Plaintiffs First Amended Petition for Return of Illegally Seized Property and Motion to Show Cause Subject to Article 18.18(b) of the Texas Code of Criminal Procedure, alleges that the seized machines are not gambling devices under the definition in section 47.01, Penal Code, and prays the machines be “released to the custody of’ appellee and the trial court order the defendants to appear and show cause why the machines should not be “turned over” to appellee. During the hearing on the pleas to the jurisdiction, appellee asserted that it sought only to be notified of any forfeiture proceedings, and disclaimed seeking injunctive relief. In its brief to this court, appellee again states that it is not seeking injunctive relief against any of the defendants, but seeks a hearing pursuant to Article 18.18(b) of the Code of Criminal Procedure and to require appellants to provide notice to it of the hearing. Appellee’s pleadings, however, must be judged by their substance, as
*466
determined by what effect they will have on the proceeding, if granted by the trial court.
Austin Neighborhoods Council, Inc. v. Board of Adjustment,
Appellants have asserted special exceptions not yet addressed by the trial court, one of which objects that appellee does not expressly identify the machines it owns as those seized under the search warrant. We note also that appellee has not pled that it is entitled to possession of the machines. For purposes of our review of the pleas to jurisdiction, 3 though, we consider that appellee’s petition, construed liberally in its favor, asserts ownership of the 124 seized machines and seeks to obtain possession of them against their possible forfeiture or destruction under the forfeiture statutes.
ISSUES
Potter County presents two issues, arguing that the trial court lacks subject matter jurisdiction over appellee’s suit (1) because its claim for return of the machines is not ripe nor does appellee have standing to assert the claim under article 18.18(b) of the Code of Criminal Procedure; and (2) because appellee’s claim amounts to an impermissible effort to enjoin enforcement of criminal statutes, in contravention of
State v. Morales,
RIPENESS AND STANDING
We first consider Potter County’s contention that appellee’s claims are not ripe for adjudication and the related contention that appellee lacks standing to assert its claims. Potter County points out that ap-pellee’s suit is founded on article 18.18(b) of the Code of Criminal Procedure, which provides for an adjudication of whether seized property is subject to forfeiture only in instances in which there is no prosecution or conviction following seizure. Since it is not possible to know whether article 18.18(b) has application to appel-lee’s eight-liner machines until the criminal proceedings are concluded, the County argues, appellee’s attempt to litigate issues related to the forfeiture of the machines is premature and therefore unripe. The County also points to the absence of any provision in article 18.18(b) for an entity such as appellee to initiate a proceeding under that article, and concludes that ap-pellee’s suit must fail because of its lack of standing.
Ripeness is an element of jus-ticiability, rooted in the prohibition of advisory opinions by the judiciary.
Patterson v. Planned Parenthood of Houston & S.E. Tex., Inc.,
We cannot agree that appellee’s claims are unripe for adjudication. The existence or nature of appellee’s claims is not dependent on uncertain future events; under its pleadings and the evidence before us, its eight-liner machines have been seized and are being held under a search warrant. Appellee’s pleadings seek to protect its interests in its property by obtaining possession of it. Granted, under chapter 18 of the Code of Criminal Procedure, appellee’s entitlement to possession may depend on the adjudication of issues such as whether the eight-liners are gambling devices. And, granted, those matters are also at issue in the criminal cases pending in other courts. 4 These circumstances may raise issues concerning the prior right of other courts in which related matters are pending, some of which we address later in this opinion and some of which may be addressed by pleas in abatement which the trial court has not yet heard and which are not before us. But these circumstances do not, in our view, raise a question of ripeness.
Standing also is a component of subject matter jurisdiction.
Tex. Ass’n of Bus.,
The County’s standing argument focuses on appellee’s invocation of article 18.18(b) of the Code of Criminal Procedure, and argues that appellee’s suit therefore should be treated as one asserting a statutory cause of action, one created by statute. The County points out that a proceeding under that article is, by its terms, initiated only by a magistrate or a law enforcement agency and refers us to cases holding that statutory causes of action are strictly construed. Tex.Crim. Proc.Code Ann. § 18.18(b) (Vernon Supp. 2003). Again, though, construing the allegations in appellee’s petition in its favor, as we must in this interlocutory appeal, we do not perceive such a barrier to appellee’s standing to attempt protection of its rights in its eight-liners. Appellee meets the general test for standing.
*468
Moreover, the County’s standing argument based on the requirements for initiation of a forfeiture proceeding under chapter 18 may well have been rendered moot. As noted earlier in this opinion, under the supreme court’s recent opinion in
Hardy v. State,
such a proceeding was initiated when Judge Board received the affidavit and issued the search warrant by which appellee’s machines were seized.
INTERFERENCE WITH CRIMINAL PROCEEDINGS
We turn to the issue common to Potter County and the City, in which they argue that appellee’s suit implicates the rule discussed in
Morales
that a court exercising civil jurisdiction will not interfere with the “ordinary enforcement” of a penal statute unless the statute is unconstitutional and its enforcement will cause irreparable injury to vested property rights.
Morales,
The rule has been applied, by this court and others, in cases in which litigants have sought injunctive relief with respect to the seizure, or threatened seizure, of property pursuant to search warrant. In
Letson,
this court held that a trial court lacked jurisdiction to issue a temporary injunction prohibiting law enforcement officials from pursuing allegedly improper interpretations of gambling statutes by “seizing, confiscating, forfeiting, or initiating forfeiture proceedings against” the plaintiffs’ eight-liner machines.
In
In re Cornyn,
a district court issued a temporary restraining order with respect to computers, documents and cash seized pursuant to search warrants issued by other district courts.
Similarly, the El Paso Court of Appeals applied a
Morales
analysis to reverse a district court’s denial of the State’s plea to its jurisdiction in a suit challenging the
*469
seizure of eight-liners and seeking an injunction restoring possession of them to the plaintiffs.
Cornyn v. Akin,
In
Sterling v. San Antonio Police Dept.,
the San Antonio Court of Appeals recently considered the appeal of a district court’s grant of a plea to its jurisdiction in a suit seeking a temporary restraining order and injunction brought following the seizure of eight-liners, cash, computers and office equipment.
Appellee tries to distinguish
In re Comyn, Comyn v. Akin
and
Sterling
by pointing out that its pleadings do not seek injunctive relief. Appellee’s argument is not persuasive. To begin with, as we have noted, appellee’s pleadings do not match the description it gives of them. Its pleadings ask that the eight-liners be released to its custody and that the court order the defendants to show cause why the machines should not be “turned over” to ap-pellee. As also noted, the nature of appel-lee’s pleadings is determined by the effect they will have on the proceeding, if granted by the trial court.
Austin Neighborhoods Council, Inc.,
Appellee’s suit as currently pled manifestly does not meet either of the requirements discussed in Morales. Ap-pellee’s live pleading contains a paragraph entitled “due process,” which contains the allegation “This illegal action by the [defendants has resulted in depriving the [p]laintiff of its due process right to be heard and make demand of its property.” The pleading contains no allegation, statement or claim, though, that any statute at issue is unconstitutional. Appellee’s brief in this court also makes clear that it is not asserting the unconstitutionality of any statute. And, although appellee’s pleading certainly complains about the seizure of its machines, it does not contain any allegation of irreparable injury to property rights.
Appellee’s argument that article 18.18(b) provides express authority for its initiation of this proceeding is premised on the notion that article 18.18(a) can have no application to its machines because appellee has not been charged with a crime. The language of articles 18.18(a) and 18.18(b) does not support appellee’s premise. Tex. Code Grim. Proc. Ann. art. 18.18(a) and (b). Article 18.18(a) applies following the final conviction of “a person” for possession of a
*470
gambling device. Tex. Code Crim. Proc. Ann. art. 18.18(a). The statute contains no requirement that the person convicted be the owner of the device. Article 18.18(a);
see F & H Investments Inc. v. State, 55
S.W.3d 663, 667 (Tex.App.-Waco 2001, no pet.). Article 18.18(b) applies “if there is no prosecution or conviction following sei-zurel)]” Tex.Code Crim. Proc. Ann. art. 18.18(b). The statute contains no limitation regarding the identity of the persons not prosecuted or convicted. Nor do any of the cases appellee cites support its premise. Appellee relies on
F & H Investments, 55 S.W.Sd 663; Gambling Paraphernalia, Devices, Equipment and Proceeds v. State,
Appellee argues that the court in
Gambling Paraphernalia
“allowed the property owner to bring forth a forfeiture before any such action was initiated by the [Sjtate.” That case involved the authority of a criminal court magistrate under section 54.306 of the Government Code. Tex. Gov’t Code Ann. § 54.306 (Vernon Supp. 2003). As a part of its recitation of the procedural background of the case, the court does note that the owner of the seized property filed a motion seeking return of the property pursuant to article 18.18(f) of the Code of Criminal Procedure before the State filed a motion for forfeiture. The propriety of the owner’s motion was not an issue in the case, though, and the case’s holding does not support appel-lee’s argument. Too, the opinion states that no criminal prosecution was involved,
Application of the rule set forth in Morales requires the conclusion that the trial court has no jurisdiction over appellee’s süit seeking possession of the eight-liner machines held during the pendency of criminal proceedings in another district court pursuant to a search warrant issued by that court. Appellee’s characterization of its suit as one brought under article 18.18(b) cannot avoid that conclusion.
We sustain Potter County’s second issue and the City’s first.
SOVEREIGN IMMUNITY
We next address the City’s assertion that the trial court lacks subject matter jurisdiction of appellee’s suit against the City because appellee did not plead a waiver of sovereign immunity. Appellee responds that sovereign immunity has no application to its suit because it is not seeking money damages, citing
General Services Comm’n v. Little-Tex. Insulation Co., Inc.,
We agree with the City that its immunity from suit bars appellee’s suit against it as currently pled. A proceeding to control the actions of state officials acting within their authority, even though not seeking damages, is one against the State within the rule of immunity of the State from suit.
Griffin v. Hawn,
DISPOSITION OF APPEAL
Our disposition of the issues discussed makes it unnecessary that we consider the City’s second and third issues. There remains the question of the proper disposition to be made of this case. A plaintiff whose pleadings fail to establish jurisdiction is to be afforded the opportunity to amend its pleadings unless its petition affirmatively demonstrates incurable defects in jurisdiction, that is, unless it is impossible for the plaintiff to amend its pleadings to invoke jurisdiction.
County of Cameron v. Brown,
Notes
. The indictments allege felony charges of engaging in organized criminal activity consisting of gambling promotion, possession of gambling devices, and keeping a gambling place. One additional indictment was sealed. The misdemeanor charges are keeping a gambling place, gambling promotion, and possession of a gambling device.
.
But see Castleberry Indep. Sch. Dist. v. Doe,
. And without presuming on any ruling the trial court may later make on appellants' special exceptions.
. In addition to the pending criminal cases, it would appear that a civil forfeiture proceeding under chapter 18 of the Code of Criminal Procedure is pending. In its recent opinion in
Hardy v. State,
. In a later appeal in the same case, and based on the reasons stated in its earlier opinion, the court reversed the trial court's denial of a plea to its jurisdiction asserted by the State to the extent that the plaintiffs sought the return of property seized pursuant to the search warrants.
Cornyn v. Monetizemedia.com, Inc.,
No. 01-00-00887-CV,
