Locking device for a top of a vehicle, - having a locking hook which has a gripping end at the front and a bearing end at the rear, - having a housing, in which the bearing end can be adjusted horizontally in a longitudinal direction of the locking hook, - having a drive device for adjusting the locking hook, - the drive device being drive-connected to the bearing end of the locking hook via a coupling device, on which the bearing end of the locking hook is mounted such that it can be pivoted about a horizontal pivot axis which runs transversely with respect to the longitudinal direction of the locking hook, and which coupling device is mounted on the housing such that it can be adjusted horizontally in the longitudinal direction of the locking hook, - the coupling device being configured as a crosshead which has a cross carrier, on which the bearing end of the locking hook is mounted such that it can be pivoted about the horizontal pivot axis, and a shaft which is mounted such that it can be pivoted about a vertical pivot axis on the cross carrier, and to which shaft the drive device is drive-connected, - the coupling device having at least one slide, and - the housing having at least one guide rail which extends horizontally in the longitudinal direction of the locking hook and in which the respective slide can be adjusted, characterized - in that the shaft is mounted on or in the respective slide such that it can be pivoted about the respective vertical pivot axis, or - in that the shaft is fixed in terms of rotation with regard to the respective slide, and the respective slide is mounted such that it can be pivoted on the housing about the respective vertical pivot axis, - it being possible for there to be provision, in particular, that the shaft penetrates the respective slide and is drive-connected to the drive device on a side which faces away from the cross carrier, - it being possible for there to be provision, in particular, that the shaft with the respective slide is manufactured integrally from one piece. - having a locking hook which has a gripping end at the front and a bearing end at the rear, - having a housing, in which the bearing end can be adjusted horizontally in a longitudinal direction of the locking hook, - having a drive device for adjusting the locking hook, - the drive device being drive-connected to the bearing end of the locking hook via a coupling device, on which the bearing end of the locking hook is mounted such that it can be pivoted about a horizontal pivot axis which runs transversely with respect to the longitudinal direction of the locking hook, and which coupling device is mounted on the housing such that it can be adjusted horizontally in the longitudinal direction of the locking hook, - the coupling device being configured as a crosshead which has a cross carrier, on which the bearing end of the locking hook is mounted such that it can be pivoted about the horizontal pivot axis, and a shaft which is mounted such that it can be pivoted about a vertical pivot axis on the cross carrier, and to which shaft the drive device is drive-connected, - the coupling device having at least one slide, and - the housing having at least one guide rail which extends horizontally in the longitudinal direction of the locking hook and in which the respective slide can be adjusted, characterized - in that the shaft is mounted on or in the respective slide such that it can be pivoted about the respective vertical pivot axis, or - in that the shaft is fixed in terms of rotation with regard to the respective slide, and the respective slide is mounted such that it can be pivoted on the housing about the respective vertical pivot axis, - it being possible for there to be provision, in particular, that the shaft penetrates the respective slide and is drive-connected to the drive device on a side which faces away from the cross carrier, - it being possible for there to be provision, in particular, that the shaft with the respective slide is manufactured integrally from one piece.