AttachTrailerToVehicle
From SA-MP Wiki
Attach a vehicle to another vehicle as a trailer.
(trailerid, vehicleid)
| trailerid | ID of the trailer |
| vehicleid | ID of the pulling vehicle |
| Returns | This function always returns 1, even if neither of the vehicle IDs passed are valid. |
// makes vehicle 1 pull vehicle 5 AttachTrailerToVehicle(5, 1);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- DetachTrailerFromVehicle: Detach a trailer from a vehicle.
- IsTrailerAttachedToVehicle: Check if a trailer is attached to a vehicle.
- GetVehicleTrailer: Check what trailer a vehicle is pulling.
