GetVehicleTrailer

From SA-MP Wiki

Jump to: navigation, search


Get the ID of the trailer attached to a vehicle.


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


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


if(GetVehicleTrailer(GetPlayerVehicleID(playerid))) SendClientMessage(playerid, 0xFFFFFFAA, "You are currently towing a trailer.");
else SendClientMessage(playerid, 0xFFFFFFAA, "You are not towing a trailer.");

Related Functions

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

Personal tools