---
title: "DetachTrailerFromVehicle | open.mp"
description: "Detach the connection between a vehicle and its trailer, if any."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/DetachTrailerFromVehicle
language: th
---

# DetachTrailerFromVehicle

## คำอธิบาย

Detach the connection between a vehicle and its trailer, if any.

| Name | Description |
| --- | --- |
| vehicleid | ID of the pulling vehicle. |

## ส่งคืน

This function does not return any specific values.

## ตัวอย่าง

```c
DetachTrailerFromVehicle(vehicleid);
```

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [AttachTrailerToVehicle](https://omp.itsneufox.com/th/docs/scripting/functions/AttachTrailerToVehicle): Attach a trailer to a vehicle.
-   [IsTrailerAttachedToVehicle](https://omp.itsneufox.com/th/docs/scripting/functions/IsTrailerAttachedToVehicle): Check if a trailer is attached to a vehicle.
-   [GetVehicleTrailer](https://omp.itsneufox.com/th/docs/scripting/functions/GetVehicleTrailer): Check what trailer a vehicle is pulling.
