AttachTrailerToVehicle
From SA-MP Wiki
AttachTrailerToVehicle
Attach a trailer vehicle to a pulling vehicle
(trailerid, vehicleid)
| trailerid | ID of the trailer |
| vehicleid | ID of the pulling vehicle |
This function does not return a specific value, it's best to simply ignore it.
//make vehicle 1 pull vehicle 5 AttachTrailerToVehicle(5,1);
Related Functions
The following functions might be useful as well, as they're 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.
