DetachTrailerFromVehicle
Description:
Function DetachTrailerFromVehicle detach the connection between a vehicle and its trailer, if any.
Parameters:
(vehicleid)
int | vehicleid | ID of the pulling vehicle. |
Return Values:
This function always returns 1, even if neither of the vehicle IDs passed are valid.
Examples:
DetachTrailerFromVehicle(vehicleid);
Related Functions
The following functions may be useful, as they are related 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.