GetVehicleTrailer
From SA-MP Wiki
GetVehicleTrailer
Gets the ID of the trailer attached to a vehicle.
(vehicleid)
| vehicleid | ID of the vehicle. |
| Returns | The vehicle ID of the trailer or 0 if no trailer is attached. |
new gTrailer = GetVehicleTrailer(GetPlayerVehicleID(playerid));
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- AttachTrailerToVehicle: Attach a trailer to a vehicle.
- DetachTrailerFromVehicle: Detach a trailer from a vehicle.
- IsTrailerAttachedToVehicle: Check if a trailer is attached to a vehicle.
