GetVehicleTrailer

From SA-MP Wiki

Jump to: navigation, search


Description:

Get the ID of the trailer attached to a vehicle.


Image:32px-Circle-style-warning.png

Important
Note

This function does not work for trains.


Parameters:
(vehicleid)
vehicleidThe ID of the vehicle to get the trailer of.


Return Values:

The vehicle ID of the trailer or 0 if no trailer is attached.


new trailerid = GetVehicleTrailer(vehicleid);
DetachTrailerFromVehicle(trailerid);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages