IsTrailerAttachedToVehicle

From SA-MP Wiki

Jump to: navigation, search

IsTrailerAttachedToVehicle


Checks if a vehicle has a trailer attached to it.


Parameters:
(vehicleid)
vehicleidThe ID of the vehicle to check for trailers


Returns1 if the vehicle has a trailer attached, otherwise 0.


if(IsTrailerAttachedToVehicle(vehicleid))
{
    printf("Vehicle %i has a trailer!",vehicleid);
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools