AttachTrailerToVehicle

From SA-MP Wiki

Jump to: navigation, search


Attach a vehicle to another vehicle as a trailer.


Image:32px-Circle-style-warning.png Important Note: Will only work if both vehicles are streamed in.


Parameters:
(trailerid, vehicleid)
traileridID of the trailer
vehicleidID of the pulling vehicle


ReturnsThis 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.

Personal tools
In other languages