AttachTrailerToVehicle
From SA-MP
[edit]
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);
[edit]
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- DetachTrailerFromVehicle: Detach the connection.
- IsTrailerAttachedToVehicle: Find out if a trailer is attached.
- GetVehicleTrailer: Get the ID of the trailer of a vehicle.
