IsTrailerAttachedToVehicle
From SA-MP Wiki
IsTrailerAttachedToVehicle
Checks if a vehicle has a trailer attached to it.
(vehicleid)
| vehicleid | The ID of the vehicle to check for trailers |
| Returns | 1 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.
- AttachTrailerToVehicle: Attach a trailer to a vehicle.
- DetachTrailerFromVehicle: Detach a trailer from a vehicle.
- GetVehicleTrailer: Check what trailer a vehicle is pulling.
