DetachTrailerFromVehicle
From SA-MP Wiki
Description:
Detach the connection between a vehicle and its trailer, if any.
(vehicleid)
vehicleid | ID of the pulling vehicle. |
Return Values:
This function always returns 1, even if neither of the vehicle IDs passed are valid.
Example Usage:
DetachTrailerFromVehicle(vehicleid);
[edit]
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- AttachTrailerToVehicle: Attach a trailer to a vehicle.
- IsTrailerAttachedToVehicle: Check if a trailer is attached to a vehicle.
- GetVehicleTrailer: Check what trailer a vehicle is pulling.