new vehiD = GetPlayerVehicleID(playerid); //pega o veiculo do player if(IsTrailerAttachedToVehicle(vehiD))//vefirica o trailer. {//seu codigo..