AttachTrailerToVehicle
From SA-MP Wiki
AttachTrailerToVehicle
Attach a vehicle to another vehicle as a trailer.
Important Note: Will only work if both vehicles are streamed in.
(trailerid, vehicleid)
| trailerid | ID of the trailer |
| vehicleid | ID of the pulling vehicle |
This function does not return a specific value.
// makes 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.
